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]

Re: g++ egcs-1.1a internal compiler error



> 
> > JHB NIJHOF <j.h.b.nijhof@aston.ac.uk> writes:
> > 
> > > Version of g++ (g++ -V): egcs-2.91.57
> > > Operating system: Debian Linux 1.3
> > 
> > I couldn't reproduce your problem with the 1.1-pre-release on neither
> > RedHat Linux 4.0/x86 nor 5.0/x86, and, AFAIK, no x86-related change
> > was done between the pre-release and the final release.  Did you run
> > the compiler with any argument other than the source file name?
> > I tried with and without optimization.

The command I used was simply 'g++ -c bug.cc'.

Stefan Meixner wrote:
> 
> I was able to reproduce the problem on 
> 
> i486-pc-linux-gnulibc1
> 
> on a mixed Slackware / Debian Linux 1.3 system.
> 
> I checked
> gcc version egcs-2.91.57 19980901 (egcs-1.1 release)
> gcc version egcs-2.91.55 19980824 (gcc2 ss-980609 experimental)
> 
> which both failed with the original error message,
> 
> bug.cc:82: sorry, not implemented: testing (null) for template parms
> bug.cc: In method `Field::Field(const class string &, int = 0)':
> bug.cc:82: confused by earlier errors, bailing out
> 
> but 
> gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)
> 
> compiles the source without a problem. I checked with and without
> optimization.

At home , on a Debian 2.0 (glibc) system, egcs-1.03a is ok, but:
egcs-2.91.55 (egcs-19980824) failed with 

bug.cc:72: sorry, not implemented: testing exit_expr for template parms
bug.cc: In method `Field::Field(const class string &, int = 0)':
bug.cc:72: confused by earlier errors, bailing out

with the line marked '// BUG 1' in, and

bug.cc:82: sorry, not implemented: testing exit_expr for template parms
bug.cc: In method `Field::Field(const class string &, int = 0)':
bug.cc:82: confused by earlier errors, bailing out

with that line commented out.
Both with egcs-1.1a at work
and egcs-19980824 at home, I have installed them in a non-standard
directory, so one vague possibility is that it does not find the right
g++ include files.
If not, it must be a clash with Debian's stdlib.h or math.h?

I've run bug.cc through g++ -E: [that's egcs-1.1a]

 g++ -E bug.cc > expanded.cc

and put expanded.cc on my web site:
     http://www-th.phys.rug.nl/~nijhof/expanded.cc
(after preprocessing it has become 300 kB, so I won't include it
 here).
g++ -c expanded.cc 
(at work, with egcs-1.1a's g++) still fails with an 'internal compiler error'.

Jeroen Nijhof


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