PR c++/22173
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 16 Oct 2005 21:58:08 +0000 (21:58 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 16 Oct 2005 21:58:08 +0000 (21:58 +0000)
* typeck.c (check_template_keyword): Fix thinko.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@105471 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 0393ea8..2896ce2 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 bc34a40..e3c431d 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);