Internal compiler error 40

Ales Cepek cepek@fsv.cvut.cz
Mon May 3 13:02:00 GMT 1999


/*
 * Hello,
 *
 * I am sending a minor bug concerning concatenation of std strings. 
 *
 * Ales
 *
 */


#include <string>

int main()
{
  using namespace std;
  string b("middle");
  string t = string("first") + b    // ###### operator + missing here ######
                               string("last");
  return 0;
}

/*
  g++ -v ; g++ -Wall --pedantic -c ie-40.cpp
  Reading specs from /usr/lib/gcc-lib/i486-linux/egcs-2.91.60/specs
  gcc version egcs-2.91.60 Debian 2.1 (egcs-1.1.1 release)
  ie-40.cpp: In function `int main()':
  ie-40.cpp:9: Internal compiler error 40.
  ie-40.cpp:9: Please submit a full bug report to `egcs-bugs@cygnus.com'.
  ie-40.cpp:9: See <URL: http://egcs.cygnus.com/faq.html#bugreport > for details.
  
  Compilation exited abnormally with code 1 at Mon May  3 15:15:09
 */






More information about the Gcc-bugs mailing list