[Bug c++/66786] [5/6 Regression] ICE: Segmentation fault

ppalka at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Mar 5 01:59:00 GMT 2016


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

--- Comment #6 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Author: ppalka
Date: Sat Mar  5 01:59:04 2016
New Revision: 233997

URL: https://gcc.gnu.org/viewcvs?rev=233997&root=gcc&view=rev
Log:
Fix PR c++/66786 (ICE with nested lambdas in variable template)

gcc/cp/ChangeLog:

        PR c++/66786
        * pt.c (template_class_depth): Given a lambda type, iterate
        into its LAMBDA_TYPE_EXTRA_SCOPE field instead of its
        TYPE_CONTEXT.  Given a VAR_DECL, iterate into its
        CP_DECL_CONTEXT.

gcc/testsuite/ChangeLog:

        PR c++/66786
        * g++.dg/cpp1y/var-templ48.C: New test.
        * g++.dg/cpp1y/var-templ49.C: New test.


Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/var-templ48.C
    trunk/gcc/testsuite/g++.dg/cpp1y/var-templ49.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list