aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/semantics.c
diff options
context:
space:
mode:
authorMark Mitchell <mmitchel@gcc.gnu.org>2006-10-02 04:12:51 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2006-10-02 04:12:51 +0000
commit51a203d95e956aacdb9c6432f9fabdee3c20276e (patch)
tree7285435b8401e2a391cb80997c0b09f992dfd968 /gcc/cp/semantics.c
parent297d410513c658b50550f02b0e7cd914b0551630 (diff)
downloadgcc-51a203d95e956aacdb9c6432f9fabdee3c20276e.zip
gcc-51a203d95e956aacdb9c6432f9fabdee3c20276e.tar.gz
gcc-51a203d95e956aacdb9c6432f9fabdee3c20276e.tar.bz2
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
Diffstat (limited to 'gcc/cp/semantics.c')
-rw-r--r--gcc/cp/semantics.c1
1 files changed, 0 insertions, 1 deletions
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;