[Bug c++/65055] Types and variables differ in handling of multiple instances of attribute aligned/alignas

2024-04-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65055

Andrew Pinski  changed:

   What|Removed |Added

 Resolution|--- |DUPLICATE
 Status|NEW |RESOLVED

--- Comment #3 from Andrew Pinski  ---
Dup.

*** This bug has been marked as a duplicate of bug 64236 ***

[Bug c++/65055] Types and variables differ in handling of multiple instances of attribute aligned/alignas

2024-04-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65055

Andrew Pinski  changed:

   What|Removed |Added

   Last reconfirmed|2018-09-14 00:00:00 |2024-4-6
Summary|Types and variables differ  |Types and variables differ
   |in handling of multiple |in handling of multiple
   |instances of attribute  |instances of attribute
   |aligned |aligned/alignas

--- Comment #2 from Andrew Pinski  ---
Confirmed even using standard C++11 style attributes/alingof fails:
```
struct alignas(32) alignas(16) A {} ;

extern int x alignas(32) alignas(16);

extern int chk[32];
extern int chk[alignof(struct A)];
```

Which works with clang, MSVC and EDG.