pt.c (check_template_shadow): New fn.
authorJason Merrill <jason@yorick.cygnus.com>
Fri, 4 Dec 1998 11:14:21 +0000 (11:14 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 4 Dec 1998 11:14:21 +0000 (06:14 -0500)
commitf3400fe27cc892535caa8dd17a62ecaf49e24646
treedeef17e4d8047bf5208c860b90ec9e7d611781e2
parent2ec10ea98a951e150ac0a9e0a76bbdd5c0b3ce70
pt.c (check_template_shadow): New fn.

* 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.

From-SVN: r24086
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/error.c
gcc/cp/lang-options.h
gcc/cp/parse.c
gcc/cp/parse.y
gcc/cp/pt.c