This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/82336] [6/7 Regression] GCC requires but does not emit defaulted constructors in certain cases
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 23 Mar 2018 14:39:51 +0000
- Subject: [Bug c++/82336] [6/7 Regression] GCC requires but does not emit defaulted constructors in certain cases
- Auto-submitted: auto-generated
- References: <bug-82336-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82336
--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Mar 23 14:39:19 2018
New Revision: 258807
URL: https://gcc.gnu.org/viewcvs?rev=258807&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:
branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp0x/initlist-defarg2.C
Modified:
branches/gcc-7-branch/gcc/cp/ChangeLog
branches/gcc-7-branch/gcc/cp/decl.c