[Bug c++/83937] [7 Regression] C++17 binds braced init of a type T to default arg of a ctor instead of using T's own default ctor
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Mar 16 14:36:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83937
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|accepts-invalid |wrong-code
--- Comment #8 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Mar 16 14:35:47 2018
New Revision: 258594
URL: https://gcc.gnu.org/viewcvs?rev=258594&root=gcc&view=rev
Log:
PR c++/83937 - wrong C++17 handling of init-list ctor argument.
* call.c (build_special_member_call): Don't convert an init-list
argument directly to the class type.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/initlist-ctor2.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
More information about the Gcc-bugs
mailing list