This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/24173] [4.0/4.1/4.2 regression] ICE with garbage collection



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]