This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/38104] New: ICE segmentation fault (with -O3 when deref a NULL pointer in the code??)


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]