[Bug c++/37383] New: optimization - compiler crash

2008-09-05 Thread dckorah at gmail dot com
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 http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see .
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



[Bug c++/37383] optimization - compiler crash

2008-09-05 Thread dckorah at gmail dot com


--- Comment #1 from dckorah at gmail dot com  2008-09-05 13:49 ---
Created an attachment (id=16232)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16232&action=view)
the temporary file /tmp/ccZFb4sl.out


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37383



[Bug c++/37383] optimization - compiler crash

2008-09-05 Thread dckorah at gmail dot com


--- 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