Issue 175733
Summary [Clang] typeof_unqual's removal of gnu::aligned attribute depends on other qualifiers
Labels
Assignees
Reporter fuhsnn
    https://godbolt.org/z/a1zjYMrY5
```c
[[gnu::aligned]] typedef int T1;
[[gnu::aligned]] typedef int const T2;
[[gnu::aligned]] typedef int volatile T3;

__typeof_unqual(T1) i1; // 16-bytes aligned
__typeof_unqual(T2) i2; // 4-bytes aligned
__typeof_unqual(T3) i3; // 4-bytes aligned
```
IMO this is rather inconsistent, however GCC also behaves like this.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to