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]

Internal compiler error 40


/*
 * 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
 */






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