internal compiler error 109

Georg Bauhaus bauhaus@uni-duisburg.de
Mon Jul 12 19:06:00 GMT 1999


//  dear "egcs-bugs",

//  #include <string> "results" in an internal compiler error 109
//  (only saying that this doesn't happen if #include <string> is
//  omitted; this is funny somehow; i filed a report having the opposite
//  premis resulting in the same error only few days ago. the code *is*
//  erroneous, i think. :)

#include <string>

class S {

  static const string spec_rev_ = "";
  // static const string spec_rev_ = string("");  // error
  // static const char spec_rev_[] = "";  // no error, no warning
  // static const char * spec_rev_ = "";  // warning

};

/*
c++ -c  -x c++ -Wall Templates.hh
Templates.hh:11: Internal compiler error 109.
Templates.hh:11: Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'.
Templates.hh:11: See <URL: http://egcs.cygnus.com/faq.html#bugreport > for details.

Linux sonnenregen 2.2.1 #3 SMP Fri Apr 23 06:04:04 CEST 1999 i586 unknown
Debian GNU/Linux
c++ -v
Reading specs from /usr/lib/gcc-lib/i486-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 Debian GNU/Linux (egcs-1.1.2 release)

-# georg
*/


More information about the Gcc-bugs mailing list