[Bug c++/114066] Allow classes with constructors in anonymous struct

2024-02-22 Thread redorav at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114066 --- Comment #3 from Emilio López --- Hi Andrew, Thanks for the fast reply, I understand that some things are outside the spec, but it'd be a great addition, if possible. The simplified test case you made would definitely repro the error messag

[Bug c++/114066] Allow classes with constructors in anonymous struct

2024-02-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114066 --- Comment #2 from Andrew Pinski --- >anonymous structs Which are a GNU extension to begin with ...

[Bug c++/114066] Allow classes with constructors in anonymous struct

2024-02-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114066 --- Comment #1 from Andrew Pinski --- Simplified/corrected testcase: ``` struct swizzle4 { swizzle4& operator = (const swizzle4& other); }; struct float4x4 { struct { swizzle4 _m00_m10_m20_m30; }; }; ```

[Bug c++/114066] Allow classes with constructors in anonymous struct

2024-02-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114066 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement