diff options
author | Jason Merrill <jason@redhat.com> | 2014-10-09 14:05:29 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2014-10-09 14:05:29 -0400 |
commit | ea4e4e6e2f85186ddff69ced0b8647fac67d68ae (patch) | |
tree | f21f7dbe8cfd281fd8ad88b0fd2ea707f065a5ab /gcc/cp/parser.c | |
parent | 5d4fffb822d1370d3e8efb694dbc9dc35d003de8 (diff) | |
download | gcc-ea4e4e6e2f85186ddff69ced0b8647fac67d68ae.zip gcc-ea4e4e6e2f85186ddff69ced0b8647fac67d68ae.tar.gz gcc-ea4e4e6e2f85186ddff69ced0b8647fac67d68ae.tar.bz2 |
re PR c++/63309 (internal compiler error: Segmentation fault)
PR c++/63309
* parser.c (cp_parser_class_head): push_template_decl for members
of templates, too.
From-SVN: r216044
Diffstat (limited to 'gcc/cp/parser.c')
-rw-r--r-- | gcc/cp/parser.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index bc992b2..a9edcd5 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -20222,9 +20222,7 @@ cp_parser_class_head (cp_parser* parser, template either from the template headers or the type we're defining, so that we diagnose both extra and missing headers. */ if ((PROCESSING_REAL_TEMPLATE_DECL_P () - || (CLASSTYPE_TEMPLATE_INFO (TREE_TYPE (type)) - && PRIMARY_TEMPLATE_P (CLASSTYPE_TI_TEMPLATE - (TREE_TYPE (type))))) + || CLASSTYPE_TEMPLATE_INFO (TREE_TYPE (type))) && !CLASSTYPE_TEMPLATE_SPECIALIZATION (TREE_TYPE (type))) { type = push_template_decl (type); |