aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Reichelt <reichelt@gcc.gnu.org>2003-11-03 21:29:35 +0000
committerVolker Reichelt <reichelt@gcc.gnu.org>2003-11-03 21:29:35 +0000
commit0c5a0451d4be41cbbb6f0d3ab24e4bf289498811 (patch)
treee60123b971a4ec0c0b5e3cd210a138e9656d96e8
parent871a312206d8bdaa75088ea61c1971fc5d73f4f9 (diff)
downloadgcc-0c5a0451d4be41cbbb6f0d3ab24e4bf289498811.zip
gcc-0c5a0451d4be41cbbb6f0d3ab24e4bf289498811.tar.gz
gcc-0c5a0451d4be41cbbb6f0d3ab24e4bf289498811.tar.bz2
re PR c++/12726 (ICE (segfault) on trivial code)
PR c++/12726 * g++.dg/ext/complit2.C: Replace test with self-contained version. * ChangeLog: Add missing first entry for above test. From-SVN: r73227
-rw-r--r--gcc/testsuite/ChangeLog11
-rw-r--r--gcc/testsuite/g++.dg/ext/complit2.C25
2 files changed, 26 insertions, 10 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 4c13815..25f756a 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2003-11-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+
+ PR c++/12726
+ * g++.dg/ext/complit2.C: Replace test with self-contained version.
+ * ChangeLog: Add missing first entry for above test.
+
2003-11-02 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
PR c++/9810
@@ -123,6 +129,11 @@
* g++.dg/inherit/covariant10.C: New test.
* g++.dg/inherit/covariant11.C: New test.
+2003-10-23 Jason Merrill <jason@redhat.com>
+
+ PR c++/12726
+ * g++.dg/ext/complit2.C: New test.
+
2003-10-20 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
PR target/12654
diff --git a/gcc/testsuite/g++.dg/ext/complit2.C b/gcc/testsuite/g++.dg/ext/complit2.C
index a8fe874..9fe00c4 100644
--- a/gcc/testsuite/g++.dg/ext/complit2.C
+++ b/gcc/testsuite/g++.dg/ext/complit2.C
@@ -1,17 +1,22 @@
// PR c++/12726
+// Origin: Vladimir Zidar <mr_W@mindnever.org>
+// Reduced version: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
// { dg-options "" }
-#include <string>
-
-struct foobar {
- std::string s;
-};
-
-int main(int argc, char **argv)
+struct A
{
- foobar fb;
+ A();
+ A(const A&);
+ A(int);
+};
- fb = (foobar) { "abcd" };
+struct B
+{
+ A a;
+};
- return 0;
+void foo()
+{
+ B b;
+ b = (B){0};
}