]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c++/24103 (ICE in simple_cst_equal)
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>
Fri, 2 Dec 2005 12:48:06 +0000 (12:48 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Fri, 2 Dec 2005 12:48:06 +0000 (12:48 +0000)
PR c++/24103
* g++.dg/other/default1.C: New test.

From-SVN: r107889

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/default1.C [new file with mode: 0644]

index 27a310f604c227449962da574b91747e9ff152aa..63c2cff7730cb838e3674fc2f57ebc8555d4130a 100644 (file)
@@ -1,3 +1,8 @@
+2005-12-02  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
+
+       PR c++/24103
+       * g++.dg/other/default1.C: New test.
+
 2005-12-02  Richard Guenther  <rguenther@suse.de>
 
        * gcc.dg/tree-ssa/20031106-6.c: Remove XFAIL.
diff --git a/gcc/testsuite/g++.dg/other/default1.C b/gcc/testsuite/g++.dg/other/default1.C
new file mode 100644 (file)
index 0000000..a6d9681
--- /dev/null
@@ -0,0 +1,22 @@
+// PR c++/24103
+// ICE in simple_cst_equal
+// Origin: Alexander Stepanov <astepanov@softminecorp.com>
+// { dg-do compile }
+// { dg-options "" }
+
+struct S
+{
+  int i;
+};
+
+struct A
+{
+  A(S = (S){0});
+};
+
+struct B
+{
+  B(S = (S){0});
+};
+
+B::B(S) {}