[Bug c++/118117] Array Of Nested Structs Makes Inner Struct Anonymous

2024-12-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118117 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug c++/118117] Array Of Nested Structs Makes Inner Struct Anonymous

2024-12-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118117 --- Comment #2 from Andrew Pinski --- So GCC has had problems in the past (and looks like it still) with `typedef struct {...} name;` Which should be the same as `struct name {...};` for C++.

[Bug c++/118117] Array Of Nested Structs Makes Inner Struct Anonymous

2024-12-18 Thread lgomez at windhoverlabs dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118117 --- Comment #1 from Lorenzo Gomez --- I should also mention that if undef USE_VIRTUAL, then there is NO issue. So the combination of array of nested structs (t1::t2 in this case) and having a virtual method in t1 triggers this issue.