public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/34953]  New: ICC on destructor + noreturn-function at -O3
@ 2008-01-24 14:15 bisqwit at iki dot fi
  2008-01-24 14:43 ` [Bug c++/34953] " bisqwit at iki dot fi
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: bisqwit at iki dot fi @ 2008-01-24 14:15 UTC (permalink / raw)
  To: gcc-bugs

This code crashes GCC versions 4.1.2, 4.1.3, and 4.2.3, when compiled using the
-O3 option.


void B_CLEAR(void* ret);
void B_NeverReturns(void* ret) __attribute__((noreturn));

int main()
{
    const struct AutoErrPop { ~AutoErrPop() { } } AutoErrPopper = { };
    B_NeverReturns(0);
}

void B_NeverReturns(void* ret)
{
    B_CLEAR(ret); /* Never returns (does a setjmp/goto) */
}

Tested on x86_64 and i386. To reproduce: g++ a.cc -O3

Expected result:
a.cc:4: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see <URL:file:///usr/share/doc/gcc-4.2/README.Bugs>.


-- 
           Summary: ICC on destructor + noreturn-function at -O3
           Product: gcc
           Version: 4.1.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bisqwit at iki dot fi
 GCC build triplet: x86_64-pc-linux-gnu
  GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu


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


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

end of thread, other threads:[~2008-07-04 16:18 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-24 14:15 [Bug c++/34953] New: ICC on destructor + noreturn-function at -O3 bisqwit at iki dot fi
2008-01-24 14:43 ` [Bug c++/34953] " bisqwit at iki dot fi
2008-01-24 15:48 ` [Bug c++/34953] [4.1/4.2 Regression] ICE " rguenth at gcc dot gnu dot org
2008-01-24 15:53 ` rguenth at gcc dot gnu dot org
2008-01-24 16:06 ` rguenth at gcc dot gnu dot org
2008-01-24 16:07 ` [Bug c++/34953] [4.1 " rguenth at gcc dot gnu dot org
2008-01-24 16:16 ` rguenth at gcc dot gnu dot org
2008-02-01 17:05 ` jsm28 at gcc dot gnu dot org
2008-05-19 20:33 ` jsm28 at gcc dot gnu dot org
2008-07-04 16:18 ` jsm28 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).