This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/38104] New: ICE segmentation fault (with -O3 when deref a NULL pointer in the code??)
- From: "wouter dot vermaelen at scarlet dot be" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Nov 2008 10:19:33 -0000
- Subject: [Bug tree-optimization/38104] New: ICE segmentation fault (with -O3 when deref a NULL pointer in the code??)
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
> 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