https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90845

            Bug ID: 90845
           Summary: A recurring hang: braces around scalar initializer -
                    should be a warning
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zhonghao at pku dot org.cn
  Target Milestone: ---

A bug report complains that gcc shall warn braces around scalar initializer,
and a test case is as follows:

 struct SA { int n[1]; };
 SA sa{{{0}}}; // GCC error - should be warning

It is marked as fixed. My gcc is 10.0.0, and with -c, I cannot find any
warnings.

The url of the bug report:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88572

Reply via email to