c++/7115: Internal compiler error on template stuff
Reichelt
reichelt@igpm.rwth-aachen.de
Wed Jun 26 06:46:00 GMT 2002
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
More information about the Gcc-bugs
mailing list