[Bug c++/95559] GCC accepts "too many braces around scalar initializer " in the version of 6.1 - 8.4

2020-06-10 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95559

Marek Polacek  changed:

   What|Removed |Added

 Resolution|INVALID |DUPLICATE

--- Comment #6 from Marek Polacek  ---


*** This bug has been marked as a duplicate of bug 88572 ***

[Bug c++/95559] GCC accepts "too many braces around scalar initializer " in the version of 6.1 - 8.4

2020-06-10 Thread haoxintu at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95559

--- Comment #5 from Haoxin Tu  ---
(In reply to Marek Polacek from comment #4)
> That's the same case, initializing an int with {{}}.  GCC 8 compiled the
> second testcase, but that was fixed in r269045.

Ok, got it. At least this was a bug, can you change the status to DUPLICATE if
you are convenience? Thank you so much~

[Bug c++/95559] GCC accepts "too many braces around scalar initializer " in the version of 6.1 - 8.4

2020-06-10 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95559

--- Comment #4 from Marek Polacek  ---
That's the same case, initializing an int with {{}}.  GCC 8 compiled the second
testcase, but that was fixed in r269045.