https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101500
Jonathan Wakely <redi at gcc dot gnu.org> 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 <redi at gcc dot gnu.org> ---
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.