X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=gcc%2Fcp%2Fdecl2.c;h=f7ed5810e3b0d2eb18ab811bf37287eeb676e200;hb=3467e46177b0c62ff6506a5aa547968515835c2d;hp=851b4022086082fe6c776d63b7965b4cdfe1da61;hpb=6437c7c83907e61401606123623161b5c9129e4d;p=pf3gnuchains%2Fgcc-fork.git diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 851b4022086..f7ed5810e3b 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -1358,6 +1358,8 @@ check_classfn (ctype, function) tree *end = 0; if (DECL_USE_TEMPLATE (function) + && !(TREE_CODE (function) == TEMPLATE_DECL + && DECL_TEMPLATE_SPECIALIZATION (function)) && is_member_template (DECL_TI_TEMPLATE (function))) /* Since this is a specialization of a member template, we're not going to find the declaration in the class.