Commit 459051a0 by Mark Mitchell Committed by Mark Mitchell

re PR c++/22173 (Bogus template keyword accepted)

	PR c++/22173
	* typeck.c (check_template_keyword): Fix thinko.

From-SVN: r105471
parent bf40d45d
2005-10-16 Mark Mitchell <mark@codesourcery.com> 2005-10-16 Mark Mitchell <mark@codesourcery.com>
PR c++/22173 PR c++/22173
* decl.c (check_template_keyword): Fix thinko. * typeck.c (check_template_keyword): Fix thinko.
2005-10-16 Andrew Pinski <pinskia@physics.uc.edu> 2005-10-16 Andrew Pinski <pinskia@physics.uc.edu>
PR c++/23959 PR c++/23959
......
...@@ -1873,8 +1873,9 @@ check_template_keyword (tree decl) ...@@ -1873,8 +1873,9 @@ check_template_keyword (tree decl)
else else
{ {
tree fns; tree fns;
if (BASELINK_P (decl)) fns = decl;
fns = BASELINK_FUNCTIONS (decl); if (BASELINK_P (fns))
fns = BASELINK_FUNCTIONS (fns);
while (fns) while (fns)
{ {
tree fn = OVL_CURRENT (fns); tree fn = OVL_CURRENT (fns);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment