This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
ICE 135
- To: egcs-bugs at cygnus dot com
- Subject: ICE 135
- From: Petter Urkedal <petter at matfys dot lth dot se>
- Date: Mon, 13 Jul 1998 15:18:28 +0200
- Organization: Lund Institute of Technology
A tiny bug report follows. The ICE seems to occur when a recursively
defined template class contains a template function. I'm sorry if I'm
repeating a known bug.
Petter.
------------ sys. info & compilation ---------------------------------
[]$ g++ -v
Reading specs from
/usr/local/lib/gcc-lib/i586-pc-linux-gnu/egcs-2.91.47/specs
gcc version egcs-2.91.47 19980707 (gcc2 ss-980609 experimental)
[]$ uname -a
Linux katsumoto.matfys.lth.se 2.0.34 #1 Fri May 8 16:05:57 EDT 1998 i586
unknown
[]$ g++ ice135.cc
ice135.cc:9: Internal compiler error 135.
ice135.cc:9: Please submit a full bug report to `egcs-bugs@cygnus.com'.
------------ Input file ice135.cc ------------------------------------
template< int i >
struct foo {
foo sub< i-1 >;
template< class T > void f(T) {}
};
template<>
struct foo< 0 > {}; // line #9
main() {}
----------------------------------------------------------------------