re PR c++/22173 (Bogus template keyword accepted)
authorMark Mitchell <mark@codesourcery.com>
Sun, 16 Oct 2005 21:58:08 +0000 (21:58 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Sun, 16 Oct 2005 21:58:08 +0000 (21:58 +0000)
PR c++/22173
* typeck.c (check_template_keyword): Fix thinko.

From-SVN: r105471

gcc/cp/ChangeLog
gcc/cp/typeck.c

index 0393ea843963848883cdf9af32c241db388118e6..2896ce26dc7acd34d71c8308c5728a4f3d04b527 100644 (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
index bc34a40380688146fb6730af72961eaeda890c8f..e3c431d96d0253fa8555ad17a141e4148bd873b7 100644 (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);