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");

Reply via email to