Bug 20508 - error at compilation of a program
error at compilation of a program
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: gcc (Show other bugs)
7.0
i386 Linux
low Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-11-08 04:00 EST by Need Real Name
Modified: 2007-03-26 23:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-11-13 06:08:54 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
layout of the compilation (15.16 KB, image/gif)
2000-11-08 04:01 EST, Need Real Name
no flags Details
source file that contains the classes (24.76 KB, patch)
2000-11-09 09:15 EST, Need Real Name
no flags Details | Diff
file to make the compilation (1.10 KB, patch)
2000-11-09 09:15 EST, Need Real Name
no flags Details | Diff
file produced for de compilation wtih -save-temps -v options (267.37 KB, patch)
2000-11-09 09:17 EST, Need Real Name
no flags Details | Diff
source file that contains procedures (8.29 KB, patch)
2000-11-09 09:17 EST, Need Real Name
no flags Details | Diff

  None (edit)
Description Need Real Name 2000-11-08 04:00:18 EST
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?
Comment 1 Need Real Name 2000-11-08 04:01:27 EST
Created attachment 5147 [details]
layout of the compilation
Comment 2 Jakub Jelinek 2000-11-08 08:27:29 EST
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).
Comment 3 Need Real Name 2000-11-09 09:07:34 EST
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.
Comment 4 Need Real Name 2000-11-09 09:09:17 EST
Sorry, how can I attach new files to this bug report?
Comment 5 Jakub Jelinek 2000-11-09 09:13:33 EST
There is `Create a new attachment' (at least I see it in lynx which I'm using).
BTW: Just the .ii file is needed.
Comment 6 Need Real Name 2000-11-09 09:15:15 EST
Created attachment 5182 [details]
source file that contains the classes
Comment 7 Need Real Name 2000-11-09 09:15:54 EST
Created attachment 5183 [details]
file to make the compilation
Comment 8 Need Real Name 2000-11-09 09:17:19 EST
Created attachment 5184 [details]
file produced for de compilation wtih -save-temps -v options
Comment 9 Need Real Name 2000-11-09 09:17:50 EST
Created attachment 5185 [details]
source file that contains procedures
Comment 10 Jakub Jelinek 2000-11-13 06:08:51 EST
It is actually fixed in gcc-c++-2.96-64, not -63.

Note You need to log in before you can comment on or make changes to this bug.