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++/11237] Internal Compiler Error (segfault) in convert_from_reference at cvt.c:568


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11237



------- Additional Comments From reichelt at gcc dot gnu dot org  2003-07-01 15:26 -------
Here's a slightly shorter testcase that crashes since gcc 2.95.x :-(

===========================================================================
template <int> struct A {};

template <typename> struct B
{
    enum {e};
};

template <typename> void foo() { }

template <typename T, typename U> A<B<U>::e + 1> foo(T, U)
{
    foo<void>();
}

void bar()
{
    foo(0,0);
}
===========================================================================


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