--- Comment #7 from mmitchel at gcc dot gnu dot org 2006-04-19 16:58
---
Subject: Bug 27102
Author: mmitchel
Date: Wed Apr 19 16:58:23 2006
New Revision: 113081
URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=113081
Log:
PR c++/27102
* class.c
--- Comment #4 from reichelt at gcc dot gnu dot org 2006-04-18 10:43
---
Hi Mark,
I was just testing the following btw.:
===
--- gcc/gcc/cp/parser.c (revision 112814)
+++ gcc/gcc/cp/parser.c (working copy)
@@ -10930,6
--- Comment #5 from mark at codesourcery dot com 2006-04-18 19:41 ---
Subject: Re: [4.0/4.1/4.2 regression] ICE with invalid class
name in function template
reichelt at gcc dot gnu dot org wrote:
--- Comment #4 from reichelt at gcc dot gnu dot org 2006-04-18 10:43
---
Hi
--- Comment #6 from reichelt at gcc dot gnu dot org 2006-04-18 21:20
---
For example, I think friend void T::f(); is valid, even if T is a
template type parameter.
Indeed. Ouch...
We probably should have a testcase to cover this. Apparently, we don't have
one yet. Otherwise, my
--- Comment #3 from mmitchel at gcc dot gnu dot org 2006-04-16 18:31
---
Testing a fix.
--
mmitchel at gcc dot gnu dot org changed:
What|Removed |Added
--
mmitchel at gcc dot gnu dot org changed:
What|Removed |Added
Priority|P3 |P2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27102
--- Comment #1 from reichelt at gcc dot gnu dot org 2006-04-10 15:01
---
Confirmed.
We had a similar problem with template classes in PR18731.
--
reichelt at gcc dot gnu dot org changed:
What|Removed |Added
--- Comment #2 from reichelt at gcc dot gnu dot org 2006-04-10 15:03
---
Btw, the ICE is a segfault on the 4.0 branch.
On the 4.1 branch and mainline we get:
bug.cc:2: internal compiler error: in is_ancestor, at cp/name-lookup.c:
--