re PR c++/34953 (ICE on destructor + noreturn-function at -O3)

2008-01-24  Richard Guenther  <rguenther@suse.de>

	PR middle-end/34953
	* g++.dg/torture/pr34953.C: New testcase.

From-SVN: r131782
This commit is contained in:
Richard Biener 2008-01-24 16:02:51 +00:00
parent 134c2de333
commit 366784f820
2 changed files with 26 additions and 4 deletions

View File

@ -1,12 +1,17 @@
2008-01-24 Richard Guenther <rguenther@suse.de>
PR middle-end/34953
* g++.dg/torture/pr34953.C: New testcase.
2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
PR middle-end/34934
* gcc.c-torture/compile/20080124-1.c: New test.
2008-01-24 Paul Thomas <pault@gcc.gnu.org>
PR fortran/34872
* gfortran.dg/function_charlen_3.f: New test.
2008-01-24 Paul Thomas <pault@gcc.gnu.org>
PR fortran/34872
* gfortran.dg/function_charlen_3.f: New test.
2008-01-23 Michael Matz <matz@suse.de>

View File

@ -0,0 +1,17 @@
/* { dg-do compile } */
/* { dg-options "-w" } */
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) */
}