two bugs in egcs-2.91.13 980308
Christian Gruner
gruner@gfai.de
Wed Mar 11 04:03:00 GMT 1998
On linux/x86, with egcs-2.91.13 980308, I got
1) an endless error output
foo.cc:
foo{};
> /u/csg/src/egcs-cvs/egcs/gcc/cc1plus foo.cc
foo.cc:1: syntax error before `{'
foo.cc:1: syntax error before `{'
...
2) an internal compiler error
tst.cc:
struct allocator{};
template< class T, class ALLOC=allocator >
struct list{
typedef int iterator;
};
template< class T >
void tst( T ){
list<T>::iterator i;
}
int main(){
tst( 1 );
return 0;
}
> /u/csg/src/egcs-cvs/egcs/gcc/cc1plus tst.cc
void tst(T) int main() void tst<int>(int)
tst.cc:10: Internal compiler error.
tst.cc:10: Please submit a full bug report to `egcs-bugs@cygnus.com'.
The assertion (level>1) in tsubst (pt.c::3516) fails ( level is 1 ).
egcs-2.91.05 980122 is fine.
More information about the Gcc-bugs
mailing list