From: Mark Mitchell Date: Sun, 16 Oct 2005 21:58:08 +0000 (+0000) Subject: re PR c++/22173 (Bogus template keyword accepted) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=459051a0de3f017438f77bfe29ae8aa2244f1dd9;p=gcc.git re PR c++/22173 (Bogus template keyword accepted) PR c++/22173 * typeck.c (check_template_keyword): Fix thinko. From-SVN: r105471 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 0393ea84396..2896ce26dc7 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,8 +1,8 @@ 2005-10-16 Mark Mitchell PR c++/22173 - * decl.c (check_template_keyword): Fix thinko. - + * typeck.c (check_template_keyword): Fix thinko. + 2005-10-16 Andrew Pinski PR c++/23959 diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index bc34a403806..e3c431d96d0 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);