From 51a203d95e956aacdb9c6432f9fabdee3c20276e Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Mon, 2 Oct 2006 04:12:51 +0000 Subject: re PR c++/29105 (segfault in add_candidates with a non template base class and a template member function) PR c++/29105 * pt.c (tsubst_baselink): Substituteinto the qualifying scope. * semantics.c (baselink_for_fns): Build a baselink, even when processing a template. PR c++/29105 * g++.dg/template/member6.C: New test. * g++.dg/parse/typename7.C: Adjust error markers. From-SVN: r117361 --- gcc/cp/semantics.c | 1 - 1 file changed, 1 deletion(-) (limited to 'gcc/cp/semantics.c') diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index 3c72818..91d200a 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -2400,7 +2400,6 @@ baselink_for_fns (tree fns) tree cl; if (BASELINK_P (fns) - || processing_template_decl || error_operand_p (fns)) return fns; -- cgit v1.1