C++ gnu compiler bug report

Seletsky Robert Contr SA-ALC/LDAE rseletsky@KELLY.AF.MIL
Tue Feb 22 06:29:00 GMT 2000


Using WindRiver Tornado2 development environment.
In the following C++ code hello.cpp:
#include <iostream>
using namespace std;

int main () {
	cout << "Hello, World." << endl;
	int *p;
	try {
	p = new int;
	}
	catch (bad_alloc xa) {
		cout << "Bad" << endl;
		return(1);
	}
	return 0;
}

ccppc -g -mstrict-align -ansi -nostdinc -DRW_MULTI_THREAD -D_REENTRANT
-fvolatile -fno-bui 
ltin -fno-for-scope -I. -IE:\Tornado2\target\h -DCPU=PPC603 -c
D:\OFP\cplus\hello.cpp
D:\OFP\cplus\hello.cpp: In function `int main()':
D:\OFP\cplus\hello.cpp:10: Internal compiler error 109.
D:\OFP\cplus\hello.cpp:10: Please submit a full bug report to
`egcs-bugs@cygnus.com'.
make: *** [hello.o] Error 0x1

Done.

Note that when I add the needed #include <new> to the code it compiles and
links without error.

Robert Seletsky
Software Engineer
OnBoard Software, Inc.
404 Greig Street, Bldg. 178
Kelly AFB TX 78241
Voice: (210) 925-7698, ext. 3389
Fax: (210) 925-2144
rseletsky@onboard-software.com 
http://www.onboard-software.com


More information about the Gcc-bugs mailing list