[Bug c++/82336] [6/7/8 Regression] GCC requires but does not emit defaulted constructors in certain cases
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Mar 14 01:04:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82336
--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Mar 14 01:03:13 2018
New Revision: 258512
URL: https://gcc.gnu.org/viewcvs?rev=258512&root=gcc&view=rev
Log:
PR c++/82336 - link error with list-init default argument.
* decl.c (check_default_argument): Unshare an initializer list.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/initlist-defarg2.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
More information about the Gcc-bugs
mailing list