[clang] [clang] fix parsing of late parsed attributes with delayed template parsing (PR #163483)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 14 20:24:15 PDT 2025
================
@@ -1272,7 +1272,7 @@ Decl *Parser::ParseFunctionDefinition(ParsingDeclarator &D,
// tokens and store them for late parsing at the end of the translation unit.
if (getLangOpts().DelayedTemplateParsing && Tok.isNot(tok::equal) &&
TemplateInfo.Kind == ParsedTemplateKind::Template &&
- Actions.canDelayFunctionBody(D)) {
+ LateParsedAttrs->empty() && Actions.canDelayFunctionBody(D)) {
----------------
erichkeane wrote:
I'm not as up on late parsed attributes as I wish I was, I would like @AaronBallman to make sure we're not doing anything silly here.
https://github.com/llvm/llvm-project/pull/163483
More information about the cfe-commits
mailing list