Compiler crashed with these lines g++ main.cpp expenditure_category.h expenditure_category.cpp -O4 expenditure_category.h: In member function bool expenditure::category_compare::operator()(const expenditure::category&, const expenditure::category&) const: expenditure_category.h:33: error: parent1 was not declared in this scope expenditure_category.h: In member function bool expenditure::category_compare::operator()(const expenditure::category&, const expenditure::category&) const: expenditure_category.h:33: error: parent1 was not declared in this scope expenditure_category.cpp:28: 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. For Debian GNU/Linux specific bug reporting instructions, see <URL:file:///usr/share/doc/gcc-4.1/README.Bugs>. Preprocessed source stored into /tmp/ccZFb4sl.out file, please attach this to your bugreport.
-- Summary: optimization - compiler crash Product: gcc Version: 4.1.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dckorah at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37383