• jason's avatar
    * pt.c (check_template_shadow): New fn. · c24cced6
    jason authored
    	* 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
    c24cced6
pt.c 259 KB