--- Additional Comments From mmitchel at gcc dot gnu dot org 2005-09-27
23:33 ---
Fixed in 4.1.0.
--
What|Removed |Added
Status|ASSIGNED|RESO
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-09-27
23:33 ---
Subject: Bug 22147
CVSROOT:/cvs/gcc
Module name:gcc
Changes by: [EMAIL PROTECTED] 2005-09-27 23:32:16
Modified files:
gcc/cp : name-lookup.c pt.c ChangeLog
--
What|Removed |Added
AssignedTo|unassigned at gcc dot gnu |mark at codesourcery dot com
|dot org |
Status|NEW
--- Additional Comments From rguenth at gcc dot gnu dot org 2005-09-09
09:42 ---
If this is valid I won't be able to fix this really. Because just adding
a forward declaration of class X fixes the problem the "simple fix"
Index: cp/pt.c
=
--- Additional Comments From rguenth at gcc dot gnu dot org 2005-09-09
09:25 ---
At least EDG accepts it in -strict_ansi mode.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22147
--- Additional Comments From rguenth at gcc dot gnu dot org 2005-09-09
08:21 ---
I have two patches, one that produces (for the testcase in comment #1)
/suse/rguenther/src/tests/pr22147-2.C: In instantiation of A:
/suse/rguenther/src/tests/pr22147-2.C:3: instantiated from void foo(
--- Additional Comments From bangerth at dealii dot org 2005-09-09 00:09
---
(In reply to comment #4)
> A regression hunt on powerpc-linux shows the reduced testcase from comment
#4
How wonderful, a recursive reference -- Janis's comment shows up as comment
#4 :-)
--
http://
--- Additional Comments From janis at gcc dot gnu dot org 2005-09-08 23:43
---
A regression hunt on powerpc-linux shows the reduced testcase from comment #4
starts failing with this patch from [EMAIL PROTECTED]:
http://gcc.gnu.org/ml/gcc-cvs/2005-03/msg00681.html
--
What
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-02
23:51 ---
The ICE:
t.cc: In instantiation of A:
t.cc:4: instantiated from void foo(A*) [with T = int]
t.cc:13: instantiated from here
t.cc:8: internal compiler error: tree check: expected tree that contains d
--- Additional Comments From bangerth at dealii dot org 2005-06-23 02:45
---
Is this really valid? class Y is undeclared at the point of the friend
declaration...
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22147
--- Additional Comments From reichelt at gcc dot gnu dot org 2005-06-22
21:41 ---
Confirmed. Reduced testcase:
template struct A;
template void foo(A* p) { *p; }
template struct A
{
friend void foo(A*);
};
void bar()
{
foo(0);
--
What|Removed |Added
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22147
12 matches
Mail list logo