public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/38104]  New: ICE segmentation fault  (with -O3 when deref a NULL pointer in the code??)
@ 2008-11-13 10:20 wouter dot vermaelen at scarlet dot be
  2008-11-13 19:12 ` [Bug tree-optimization/38104] [4.4 Regression] " rguenth at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: wouter dot vermaelen at scarlet dot be @ 2008-11-13 10:20 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 723 bytes --]

> 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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-11-14 12:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-13 10:20 [Bug tree-optimization/38104] New: ICE segmentation fault (with -O3 when deref a NULL pointer in the code??) wouter dot vermaelen at scarlet dot be
2008-11-13 19:12 ` [Bug tree-optimization/38104] [4.4 Regression] " rguenth at gcc dot gnu dot org
2008-11-14  9:01 ` jakub at gcc dot gnu dot org
2008-11-14 12:25 ` jakub at gcc dot gnu dot org
2008-11-14 12:28 ` jakub at gcc dot gnu dot org
2008-11-14 12:30 ` jakub at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).