[Bug c++/24173] [4.0/4.1/4.2 regression] ICE with garbage collection
reichelt at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Nov 30 10:16:00 GMT 2005
------- Comment #7 from reichelt at gcc dot gnu dot org 2005-11-30 10:16 -------
Here's an even shorter testcase:
=============================
template<int> struct A;
void foo(A<0>);
template<int> struct A
{
friend void foo(A<0>);
};
void bar()
{
foo(A<0>());
}
=============================
Like Andrew's testcase it only triggers on mainline and the 4.1 branch
(i686-pc-linux-gnu or x86_64-unknown-linux-gnu with "-m32")
or even only on the 4.1 branch (x86_64-unknown-linux-gnu without "-m32").
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |4.0.0 4.0.1 4.0.2 4.1.0
| |4.2.0
Known to work|4.1.0 |3.4.0 3.4.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24173
More information about the Gcc-bugs
mailing list