Skip to content

Commit 712d942

Browse files
committed
fix gh97453
1 parent 72fc2fc commit 712d942

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/lib/Parse/ParseCXXInlineMethods.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,9 @@ void Parser::ParseLexedMethodDeclaration(LateParsedMethodDeclaration &LM) {
529529
ExprResult NoexceptExpr;
530530
CachedTokens *ExceptionSpecTokens;
531531

532+
Sema::SynthesizedFunctionScope Scope(Actions,
533+
cast<FunctionDecl>(LM.Method));
534+
532535
ExceptionSpecificationType EST
533536
= tryParseExceptionSpecification(/*Delayed=*/false, SpecificationRange,
534537
DynamicExceptions,

0 commit comments

Comments
 (0)