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++/7115: Internal compiler error on template stuff


Hi,

the bug (at least one bug - maybe there are others?) can be exposed with
the following code snippet:

----------------------------------snip here----------------------------
template <unsigned int> class A {};

template <typename T> A<sizeof(T*)> foo();

void bar()
{
   foo<void>();
}
----------------------------------snip here----------------------------

Compiling this with "g++ -c" I get

bug.cpp: In function `void bar()':
bug.cpp:7: internal error: Segmentation fault
Please submit a full bug report, [etc.]

This happens with gcc 3.0.x, 3.1, 3.1.1 as of 20020624 and the main
trunk (tested on i686-pc-linux-gnu and mips-sgi-irix6.5).

It's a regression from 2.95.x and is probably related to PR 7112
(which is already marked "high priority").

Greetings,
Volker Reichelt

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



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