================ @@ -526,10 +526,14 @@ StmtResult Parser::ParseStatementOrDeclarationAfterAttributes( return ParsePragmaLoopHint(Stmts, StmtCtx, TrailingElseLoc, CXX11Attrs); case tok::annot_pragma_dump: + ProhibitAttributes(CXX11Attrs); ---------------- erichkeane wrote:
No, both of those successfully produce a `statement` out of this, so they won't assert. So any attributes you try to apply will either be valid, or fail because they don't apply to a statement. The difference in these two is that they don't result in either an error OR a valid statement. https://github.com/llvm/llvm-project/pull/137880 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits