Issue 240537
Summary __attribute__((...)) [[attribute]] Type var; compiles at global scope, but not in a namespace
Labels clang:frontend
Assignees
Reporter higher-performance
    https://godbolt.org/z/cPdrf7h7r

```
__attribute__((section(".bss")))
[[maybe_unused]] // OK
int x;

namespace {
__attribute__((section(".bss")))
[[maybe_unused]]  // error: an attribute list cannot appear here
int y;
}
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to