[Bug c++/81060] [8 Regression] ICE with un-expanded parameter pack

nathan at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Nov 16 12:12:00 GMT 2017


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

--- Comment #2 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Author: nathan
Date: Thu Nov 16 12:11:36 2017
New Revision: 254817

URL: https://gcc.gnu.org/viewcvs?rev=254817&root=gcc&view=rev
Log:
[PR c++/81060] ICE with invalid initialzer via lambda

https://gcc.gnu.org/ml/gcc-patches/2017-11/msg01323.html
        PR c++/81060
        * decl.c (xref_tag_1): Push lambda into current scope.
        * name-lookup.c (do_pushtag): Don't deal with ts_lambda here.

        PR c++81060
        * g++.dg/cpp0x/lambda/lambda-template13.C: Avoid undefined
        template using local type error.
        * g++.dg/cpp0x/pr81060.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/pr81060.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/name-lookup.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-template13.C


More information about the Gcc-bugs mailing list