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]

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


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



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