diff options
author | Mark Mitchell <mark@codesourcery.com> | 2005-10-16 21:58:08 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2005-10-16 21:58:08 +0000 |
commit | 459051a0de3f017438f77bfe29ae8aa2244f1dd9 (patch) | |
tree | fe4b4b920f8fe1d16933c64c35180f35ad9d4fcb | |
parent | bf40d45d1874a42f4b3ba8c39242b74059edb767 (diff) | |
download | gcc-459051a0de3f017438f77bfe29ae8aa2244f1dd9.zip gcc-459051a0de3f017438f77bfe29ae8aa2244f1dd9.tar.gz gcc-459051a0de3f017438f77bfe29ae8aa2244f1dd9.tar.bz2 |
re PR c++/22173 (Bogus template keyword accepted)
PR c++/22173
* typeck.c (check_template_keyword): Fix thinko.
From-SVN: r105471
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/typeck.c | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 0393ea8..2896ce2 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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 diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index bc34a40..e3c431d 100644 --- a/gcc/cp/typeck.c +++ b/gcc/cp/typeck.c @@ -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); |