egcs-971225 - internal compiler error - followup
Marius Kjeldahl
marius@ace.funcom.com
Mon Dec 29 06:10:00 GMT 1997
As described in my previous postings, the following line created a
problem for the test program I included:
DynamicOnly_t* ptr = DynamicOnly_t::create (); //*
Replacing this with:
SomeClass_t* scptr = new SomeClass_t ();
DynamicOnly_t* ptr = DynamicOnly_t::create ("UNDEF", *scptr);
makes the whole thing compile and run great. I do believe the original
code is legal (but I am far from an expert), and that this is a bug in
egcs.
Anyway, my temorary solution leads me to assume that the culprit is
the handling of the default constructed SomeClass_t instance in the
create class method of the DynamicOnly_t class.
Replacing the simple call to ::create with the two liner above, I have
been able to recompile my library (built on WinNT) unde linux with
egcs. I am still not able to use my library, but I've got a separate
posting on this ;).
Marius
More information about the Gcc-bugs
mailing list