> cat bug.ii
struct Foo { int foo; };
void f0();
void f1(Foo) { f0(); }
void f2() { f1(*static_cast<Foo*>(0)); }
> g++ -O3 bug.ii
bug.ii: In function void f2():
bug.ii:4: internal compiler error: Segmentation fault
I can trigger this with SVN revision 141816.
--
Summary: ICE segmentation fault (with -O3 when deref a NULL
pointer in the code??)
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: wouter dot vermaelen at scarlet dot be
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38104