[Bug c++/82336] [6/7 Regression] GCC requires but does not emit defaulted constructors in certain cases

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Mar 23 14:39:00 GMT 2018


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


More information about the Gcc-bugs mailing list