[Bug c++/101500] [9/10/11/12 Regression] gcc accepts the code with extra curly braces

2022-01-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101500

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug c++/101500] [9/10/11/12 Regression] gcc accepts the code with extra curly braces

2021-07-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101500

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|--- |9.5

[Bug c++/101500] [9/10/11/12 Regression] gcc accepts the code with extra curly braces

2021-07-19 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101500

Jonathan Wakely  changed:

   What|Removed |Added

  Known to fail||10.3.0, 11.1.0, 12.0,
   ||8.1.0, 9.4.0
 CC||jason at gcc dot gnu.org
  Known to work||7.5.0
   Last reconfirmed||2021-07-19
 Ever confirmed|0   |1
Summary|gcc accepts the code with   |[9/10/11/12 Regression] gcc
   |extra curly braces  |accepts the code with extra
   ||curly braces
 Status|UNCONFIRMED |NEW

--- Comment #1 from Jonathan Wakely  ---
EDG v6.2 also accepts this, but Clang and MSVC don't.

GCC started to accept it at:

PR c++/85092 - C++17 ICE with unused list constructor.

* call.c (conv_binds_ref_to_prvalue): Also count ck_identity
from a TARGET_EXPR.

From-SVN: r259052


I'll confirm it as a regression, since it doesn't look like that intended to
change this case.