------- Comment #2 from dckorah at gmail dot com 2008-09-05 13:50 ------- Here is the output without the optimization options
g++ main.cpp expenditure_category.h expenditure_category.cpp 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 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37383