The following c++ code causes a segmentation fault in the 4.0.2 on my fedora 4 system:
class foo { public: foo(); }; class bar { public: bar(); }; class IoMgr { private: void initial(); private: foo *onp_; bar *ocp_; }; void IoMgr::initial() { onp_ = new foo[2]; ocp_ = new bar; } // compiled with g++ -c foo.cpp -fmudflap foo.cpp: In member function 'void IoMgr::initial()': foo.cpp:18: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. -- Summary: Segmentation fault compiling with -fmudflap Product: gcc Version: 4.0.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: idht4n at hotmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26093