[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
egallager at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Mar 22 19:26:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83937
Eric Gallager <egallager at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |egallager at gcc dot gnu.org
--- Comment #9 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Jason Merrill from comment #8)
> 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
Did this fix it?
More information about the Gcc-bugs
mailing list