c++/7259: ice in g++ version 3.x

Reichelt reichelt@igpm.rwth-aachen.de
Thu Jul 11 12:51:00 GMT 2002


Hi,

the problem can be reduced to the following code snippet (which looks
legal to me):

----------------------------------snip here--------------------------
template <template <int> class T> class A : public T<0> {};

template <typename> struct B
{
    template <int> class C {};
    typedef A<C> D;
};

B<void>::D d;
----------------------------------snip here--------------------------

Compiling this with "g++ -c" crashes gcc 2.95.x, 3.0.x, 3.1, 3.1-branch
(as of 20020708) and the main trunk (as of 20020702) on mips-sgi-irix6.5
and i686-pc-linux-gnu.

The bug might be related to PR 5767:
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5767

Greetings,
Volker Reichelt

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7259




More information about the Gcc-bugs mailing list