[Bug c/88642] Accepts ill-formed program with invalid scalar initialization syntax.

2024-04-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88642 --- Comment #3 from Andrew Pinski --- So this code is quiet old. There was an error back before r0-5028-g790e949032a94b (1993, change by RMS) and mailing lists don't exist that far back ...

[Bug c/88642] Accepts ill-formed program with invalid scalar initialization syntax.

2024-04-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88642 --- Comment #2 from Andrew Pinski --- We do warn: : In function 'main': :3:5: warning: braces around scalar initializer 3 | int x = { { 0 } } ; | ^~~ Maybe this should be a pedantic warning instead ... if (constructor_ty

[Bug c/88642] Accepts ill-formed program with invalid scalar initialization syntax.

2019-01-02 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88642 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|