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++/72764] [5/6/7/8 Regression] ICE on invalid C++11 code instantiating an alias template: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in typedef_variant_p, at tree.c:12660


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

--- Comment #8 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Jun 28 21:06:35 2017
New Revision: 249760

URL: https://gcc.gnu.org/viewcvs?rev=249760&root=gcc&view=rev
Log:
        PR c++/72764 - ICE with invalid template typename.

        * decl.c (build_typename_type): No longer static.
        * tree.c (strip_typedefs): Use it instead of make_typename_type.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/alias-decl-60.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/tree.c

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