This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/3079: ICE in c_expand_expr, at c-common.c:3521
- From: Volker Reichelt <reichelt at igpm dot rwth-aachen dot de>
- To: gdr at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, philippeb at corel dot com
- Date: Fri, 29 Nov 2002 13:42:16 +0100
- Subject: Re: c++/3079: ICE in c_expand_expr, at c-common.c:3521
Hi,
here's a slightly cleaned-up testcase (it crashes gcc 2.95.x, 3.0.x, the
3.2-branch and mainline):
-----------------------------snip here------------------------
template <typename T> struct B
{
typedef T X;
};
template <typename T> void foo(T)
{
foo(T::X); // illegal
}
template <> void foo(int) {}
void bar()
{
foo(B<int>());
}
-----------------------------snip here------------------------
Regards,
Volker
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3079