This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11237] Internal Compiler Error (segfault) in convert_from_reference at cvt.c:568
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Jul 2003 15:26:47 -0000
- Subject: [Bug c++/11237] Internal Compiler Error (segfault) in convert_from_reference at cvt.c:568
- References: <20030618140410.11237.ehrhardt@mathematik.uni-ulm.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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);
}
===========================================================================