pointer to class causes core dump
Jiann-Ming Su
js1@microwave.ph.msstate.edu
Thu Apr 13 10:53:00 GMT 2000
First, I'm using egcs-2.91.66 on Linux. We had the following code the
dumped core:
CBaseClass* BaseClassPtr;
BaseClassPtr = new CDerivedClass;
This seemed completely legit, but the gcc code dumped core, while the VC++
worked fine.
To fix the problem, we got rid of the BaseClassPtr and replaced it with
an instance of CDerivedClass. Any insight on why the executable would
complain is greatly appreciated.
Jiann-Ming Su, js1@microwave.ph.msstate.edu
Criminals, by definition, break the law...
More information about the Gcc
mailing list