This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
two bugs in egcs-2.91.13 980308
- To: egcs-bugs at cygnus dot com
- Subject: two bugs in egcs-2.91.13 980308
- From: Christian Gruner <gruner at gfai dot de>
- Date: Wed, 11 Mar 1998 13:01:20 +0100
- Organization: GFaI
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.