diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Parse/ParseDecl.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Parse/ParseDecl.cpp b/lib/Parse/ParseDecl.cpp index 932ffb440f..4775798d62 100644 --- a/lib/Parse/ParseDecl.cpp +++ b/lib/Parse/ParseDecl.cpp @@ -4270,6 +4270,8 @@ void Parser::ParseFunctionDeclarator(Declarator &D, D.getDeclSpec().getStorageClassSpec() != DeclSpec::SCS_typedef && !D.getDeclSpec().isFriendSpecified()); + for (unsigned i = 0, e = D.getNumTypeObjects(); Delayed && i != e; ++i) + Delayed &= D.getTypeObject(i).Kind == DeclaratorChunk::Paren; ESpecType = tryParseExceptionSpecification(Delayed, ESpecRange, DynamicExceptions, |