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]

ICE 135


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() {}

----------------------------------------------------------------------


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