aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2011-04-18 14:22:35 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2011-04-18 14:22:35 +0000
commitab62fc03ecdcc3eae67bc5e9d2a39a93d848c6be (patch)
treed831b25b8d21a5be3852994f774d99028a126498
parentfa71a2b407de1d611eafa1a20edaa6f156fbd151 (diff)
downloadgcc-ab62fc03ecdcc3eae67bc5e9d2a39a93d848c6be.zip
gcc-ab62fc03ecdcc3eae67bc5e9d2a39a93d848c6be.tar.gz
gcc-ab62fc03ecdcc3eae67bc5e9d2a39a93d848c6be.tar.bz2
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
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.dg/torture/pr46364.C20
2 files changed, 25 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index b8a80b8..cedb20f 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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*.
diff --git a/gcc/testsuite/g++.dg/torture/pr46364.C b/gcc/testsuite/g++.dg/torture/pr46364.C
new file mode 100644
index 0000000..8098991
--- /dev/null
+++ b/gcc/testsuite/g++.dg/torture/pr46364.C
@@ -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);
+}