[Bug c++/58632] [4.8/4.9 Regression] ICE reusing template parameter name as class name
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jan 28 21:34:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58632
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Tue Jan 28 21:33:55 2014
New Revision: 207213
URL: http://gcc.gnu.org/viewcvs?rev=207213&root=gcc&view=rev
Log:
PR c++/58632
* decl.c (lookup_and_check_tag): Ignore template parameters if
scope == ts_current.
* pt.c (check_template_shadow): Don't complain about the injected
class name.
Added:
branches/gcc-4_8-branch/gcc/testsuite/g++.dg/template/shadow1.C
Modified:
branches/gcc-4_8-branch/gcc/cp/ChangeLog
branches/gcc-4_8-branch/gcc/cp/decl.c
branches/gcc-4_8-branch/gcc/cp/pt.c
More information about the Gcc-bugs
mailing list