This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]