public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c/88642] Accepts ill-formed program with invalid scalar initialization syntax. [not found] <bug-88642-4@http.gcc.gnu.org/bugzilla/> @ 2024-04-09 5:20 ` pinskia at gcc dot gnu.org 2024-04-09 5:25 ` pinskia at gcc dot gnu.org 1 sibling, 0 replies; 2+ messages in thread From: pinskia at gcc dot gnu.org @ 2024-04-09 5:20 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88642 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- We do warn: <source>: In function 'main': <source>:3:5: warning: braces around scalar initializer 3 | int x = { { 0 } } ; | ^~~ Maybe this should be a pedantic warning instead ... if (constructor_type != error_mark_node) warning_init (input_location, 0, "braces around scalar initializer"); ^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c/88642] Accepts ill-formed program with invalid scalar initialization syntax. [not found] <bug-88642-4@http.gcc.gnu.org/bugzilla/> 2024-04-09 5:20 ` [Bug c/88642] Accepts ill-formed program with invalid scalar initialization syntax pinskia at gcc dot gnu.org @ 2024-04-09 5:25 ` pinskia at gcc dot gnu.org 1 sibling, 0 replies; 2+ messages in thread From: pinskia at gcc dot gnu.org @ 2024-04-09 5:25 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88642 --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- 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 ... ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-04-09 5:25 UTC | newest] Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <bug-88642-4@http.gcc.gnu.org/bugzilla/> 2024-04-09 5:20 ` [Bug c/88642] Accepts ill-formed program with invalid scalar initialization syntax pinskia at gcc dot gnu.org 2024-04-09 5:25 ` pinskia at gcc dot gnu.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).