Hello, I've isntalled the RedHat version 7.0. When I treated to compile a program that worked with my other version of Linux, the compiler shows an error. The program is good. gcc -Wall -c -g -o ./logpol.o ./logpol.cpp -I../include In file included from ./logpol.cpp:2: ximg.hpp:237: ISO C++ forbids declaration of 'Initialize' with no type ... ... ximg.hpp: At top level: ximg.hpp:293: Internal error # 19990916 ximg.hpp:293: Internal compiler error in poplevel, at ../gcc/cp/decl.c:1315 make: ***[logpol.o] Error 1 The output of the gcc -v program in my system is: Reading specs form /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs gcc version 2.96 20000731 (Red Hat Linux 7.0) What can I do?
Created attachment 5147 [details] layout of the compilation
Can you please rerun the command above with -save-temps -v options and attach here resulting logpol.ii? I believe the ICE is fixed in gcc-2.96-63, but your program most probably needs fixing as well (without seeing it, I cannot say it for sure, but g++ is now much more strict about C++ code, even if it compiled with older g++, it does not mean the source is ok).
Here you have the resulting logpol.ii I attach also the source files an the file I use to make the compilation and link. Thank you.
Sorry, how can I attach new files to this bug report?
There is `Create a new attachment' (at least I see it in lynx which I'm using). BTW: Just the .ii file is needed.
Created attachment 5182 [details] source file that contains the classes
Created attachment 5183 [details] file to make the compilation
Created attachment 5184 [details] file produced for de compilation wtih -save-temps -v options
Created attachment 5185 [details] source file that contains procedures
It is actually fixed in gcc-c++-2.96-64, not -63.