diff options
Diffstat (limited to 'clang/lib/Parse/ParseExprCXX.cpp')
| -rw-r--r-- | clang/lib/Parse/ParseExprCXX.cpp | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/clang/lib/Parse/ParseExprCXX.cpp b/clang/lib/Parse/ParseExprCXX.cpp index 383986470d5..cfda2cddec8 100644 --- a/clang/lib/Parse/ParseExprCXX.cpp +++ b/clang/lib/Parse/ParseExprCXX.cpp @@ -1639,9 +1639,10 @@ ExprResult Parser::ParseCXXThis() {  ///         typename-specifier '(' expression-list[opt] ')'  /// [C++0x] typename-specifier braced-init-list  /// +/// In C++1z onwards, the type specifier can also be a template-name.  ExprResult  Parser::ParseCXXTypeConstructExpression(const DeclSpec &DS) { -  Declarator DeclaratorInfo(DS, Declarator::TypeNameContext); +  Declarator DeclaratorInfo(DS, Declarator::FunctionalCastContext);    ParsedType TypeRep = Actions.ActOnTypeName(getCurScope(), DeclaratorInfo).get();    assert((Tok.is(tok::l_paren) || | 

