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++/58583] [c++11] ICE with invalid non-static data member initialization in template


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58583

--- Comment #4 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Author: nathan
Date: Tue Jun 16 01:59:55 2015
New Revision: 224502

URL: https://gcc.gnu.org/viewcvs?rev=224502&root=gcc&view=rev
Log:
        cp/
        PR c++/58583
        * cp-tree.h (DECL_INSTANTIATING_NSDMI_P): New.
        * init.c (get_nsdmi): Check for DEFAULT_ARG in template case and
        protect it from recursive instantiation.

        testsuite/
        PR c++/58583
        * g++.dg/cpp0x/nsdmi-template14.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/nsdmi-template14.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/init.c
    trunk/gcc/testsuite/ChangeLog


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