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++/3792: Internal compiler error in grokdeclarator, at cp/decl.c:9760


Hi,

an even shorter example that exposes the bug is the following:

---------------------------snip here-----------------------------
struct X
{
   template <int i> struct Y {};
};

typedef X::template Y<0> y;
---------------------------snip here-----------------------------

Compiling this with "g++ -c bug.cpp" results in an ICE.

The problem can be found in gcc 2.95.3 and still persists in
gcc 3.1 20020311 (prerelease) (checked on i686-pc-linux-gnu and
mips-sgi-irix6.5).

Greetings,
Volker Reichelt

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



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