re PR c++/46364 (basic_string.h:541:32: internal compiler error: Segmentation fault)
2011-04-18 Richard Guenther <rguenther@suse.de> PR middle-end/46364 * g++.dg/torture/pr46364.C: New testcase. From-SVN: r172649
This commit is contained in:
parent
fa71a2b407
commit
ab62fc03ec
@ -1,3 +1,8 @@
|
||||
2011-04-18 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
PR middle-end/46364
|
||||
* g++.dg/torture/pr46364.C: New testcase.
|
||||
|
||||
2011-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
||||
|
||||
* obj-c++.dg/dwarf-2.mm: Skip on alpha*-dec-osf*.
|
||||
|
20
gcc/testsuite/g++.dg/torture/pr46364.C
Normal file
20
gcc/testsuite/g++.dg/torture/pr46364.C
Normal file
@ -0,0 +1,20 @@
|
||||
// { dg-do compile }
|
||||
#include <string>
|
||||
|
||||
void a() throw (int);
|
||||
void b(std::string const &);
|
||||
|
||||
void c(std::string *e)
|
||||
{
|
||||
b("");
|
||||
|
||||
try {
|
||||
a();
|
||||
} catch (...) {
|
||||
*e = "";
|
||||
}
|
||||
}
|
||||
|
||||
void d() {
|
||||
c(0);
|
||||
}
|
Loading…
Reference in New Issue
Block a user