re PR c++/12726 (ICE (segfault) on trivial code)
authorVolker Reichelt <reichelt@gcc.gnu.org>
Mon, 3 Nov 2003 21:29:35 +0000 (21:29 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Mon, 3 Nov 2003 21:29:35 +0000 (21:29 +0000)
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

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/complit2.C

index 4c138151f52e618289665743ac4e3ca6d40c32fa..25f756a043a74fa5dd4278037516440bea698ff1 100644 (file)
@@ -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
        * 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
index a8fe874360ae8cc24e96c6e8d956ce5fbb75234d..9fe00c42ea0743e42e4c301755455b4160600e3f 100644 (file)
@@ -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};
 }