[clang] [CLANG] Enable alignas after GNU attributes (PR #133107)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Apr 5 03:00:21 PDT 2025
================
@@ -296,6 +296,11 @@ StmtResult Parser::ParseStatementOrDeclarationAfterAttributes(
goto Retry;
}
+ case tok::kw_alignas: {
+ ParseAlignmentSpecifier(CXX11Attrs);
----------------
DenisGZM wrote:
No, we don't. Аor statements alignas is still illegal:
```
error: 'alignas' attribute cannot be applied to a statement
8 | alignas(int) foo();
```
https://github.com/llvm/llvm-project/pull/133107
More information about the cfe-commits
mailing list