diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-12-04 11:14:21 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-12-04 11:14:21 +0000 |
commit | c24cced6ce1ce55ea13a5d514c6fa3e1de275444 (patch) | |
tree | deef17e4d8047bf5208c860b90ec9e7d611781e2 /gcc/cp/parse.y | |
parent | 277f1fb4a09c26843b695d00bfb610dd53668d96 (diff) | |
download | gcc-c24cced6ce1ce55ea13a5d514c6fa3e1de275444.tar.gz |
* pt.c (check_template_shadow): New fn.
* decl2.c (grokfield): Use it.
* decl.c (pushdecl): Likewise.
(pushdecl_class_level): Likewise.
(start_method): Likewise.
(xref_tag): Don't try to use 't' if we're defining.
Fixes Sec14/7/C14387.cm.
* call.c (check_dtor_name): Just return an error_mark_node.
* pt.c (lookup_template_class): Complain about using non-template here.
* parse.y (apparent_template_type): Not here.
Fixes Sec14/C14339.cm.
* pt.c (check_explicit_specialization): Complain about specialization
with C linkage.
Fixes Sec14/C14340.cm.
* lang-options.h: Add -f{no-,}implicit-inline-templates.
* pt.c (convert_nontype_argument): Don't assume that any integer
argument is intended to be a constant-expression.
Fixes Sec14/7/P14245.C.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24086 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/parse.y')
-rw-r--r-- | gcc/cp/parse.y | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/cp/parse.y b/gcc/cp/parse.y index f2a1720bb3a..87ac736ea1e 100644 --- a/gcc/cp/parse.y +++ b/gcc/cp/parse.y @@ -913,10 +913,7 @@ apparent_template_type: template_type | identifier '<' template_arg_list_opt '>' .finish_template_type - { - cp_error ("template class %T was not declared yet", $1); - $$ = $5; - } + { $$ = $5; } self_template_type: SELFNAME '<' template_arg_list_opt template_close_bracket |