Issue |
120722
|
Summary |
[Clang] __attribute__((nodebug)) is silently dropped on `using` aliases in some locations
|
Labels |
clang:frontend
|
Assignees |
|
Reporter |
philnik777
|
```c++
using type1 = __attribute__((nodebug)) int;
using type2 = int __attribute__((nodebug));
using type3 __attribute__((nodebug)) = int;
```
results in this AST:
```
TranslationUnitDecl
|-TypeAliasDecl <line:2:1, col:40> col:7 type1 'int'
| `-BuiltinType 'int'
|-TypeAliasDecl <line:4:1, col:15> col:7 type2 'int'
| `-BuiltinType 'int'
`-TypeAliasDecl <line:6:1, col:40> col:7 type3 'int'
|-BuiltinType 'int'
`-NoDebugAttr <col:28>
```
Note that `type1` and `type2` don't have the `NoDebugAttr`, but clang accepts the code above without any diagnostic.
https://godbolt.org/z/Mqfe13jo1
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs