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]

two bugs in egcs-2.91.13 980308


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.


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