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

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

From-SVN: r105471
This commit is contained in:
Mark Mitchell 2005-10-16 21:58:08 +00:00 committed by Mark Mitchell
parent bf40d45d18
commit 459051a0de
2 changed files with 5 additions and 4 deletions

View File

@ -1,8 +1,8 @@
2005-10-16 Mark Mitchell <mark@codesourcery.com>
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>
PR c++/23959

View File

@ -1873,8 +1873,9 @@ check_template_keyword (tree decl)
else
{
tree fns;
if (BASELINK_P (decl))
fns = BASELINK_FUNCTIONS (decl);
fns = decl;
if (BASELINK_P (fns))
fns = BASELINK_FUNCTIONS (fns);
while (fns)
{
tree fn = OVL_CURRENT (fns);