[clang] [C23][Parser] Diagnostic for attribute declaration where statement is required (PR #146224)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 7 08:15:36 PDT 2025
================
@@ -747,6 +747,10 @@ Bug Fixes in This Version
- Fixed an infinite recursion when checking constexpr destructors. (#GH141789)
- Fixed a crash when a malformed using declaration appears in a ``constexpr`` function. (#GH144264)
- Fixed a bug when use unicode character name in macro concatenation. (#GH145240)
+- In C23, something like [[/*possible attributes*/]]; is an attribute declaration, not a statement. So it is not
----------------
AaronBallman wrote:
```suggestion
- In C23, something like ``[[/*possible attributes*/]];`` is an attribute declaration, not a statement. So it is not
```
You should also wrap to the usual 80-col limit.
https://github.com/llvm/llvm-project/pull/146224
More information about the cfe-commits
mailing list