Bug?

joao sampaio joao@aqui
Mon May 17 11:20:00 GMT 1999


I was trying to compile a tiny program and egcs said "Internal Compiler error." and ordered
me to send a bug report. So here it is:

=>egcs -v OUTPUT:
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.90.29/specs
gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)

=>egcs error:
pxmp2.cxx: In function `int main()':
pxmp2.cxx:17: Internal compiler error.
pxmp2.cxx:17: Please submit a full bug report to `egcs-bugs@cygnus.com'.

=>Linux Version:
Linux Kernel: 2.0.36
Distribution: Red Hat 5.2(Apollo)

=>Command line options:
g++ pxmp2.cxx -I /mnt/windows/Joao/Linux/fltk-1.0.1/ 
-L /mnt/windows/Joao/Linux/fltk-1.0.1/lib/ -lfltk -lX11 -lXext -o Tenta

=>I was using fltk library. Available at www.fltk.org version 1.0.1

=>pxmp2.cxx


#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Pixmap.H>
#include "../figs/zoid.xpm"
#include <FL/Fl_Box.H>

int
main()
{
Fl_Window* main= new Fl_Window(10,10, 300,300,"q");
Fl_Box* main_box= new Fl_Box(10,10,280,280);
Fl_Pixmap* pix=new Fl_Pixmap(zoid);
pix->label(main_box);
main->end();
main->show();
return Fl::run();
}		//<<==LINE 17



=>Note:
To help understand what is up there:
Fl_Window is a FLTK's window object
Fl_Box is a FLTK's square with text (or other label) object
Fl_Pixmap is an FLTK's object that contains a X pixmap. It can be put as a label (as in this case).

All objects were sucessfuly compiled by me on other occasions.


=>Sorrys:
I don't understand much of compiler's internals to even understand what has happen... At least, if it had
produced an output....
I can't experiment this on newer egcs has I simply don't have 1 MB to install it (my HD is 250 MB :-( )

Joao


More information about the Gcc-bugs mailing list