PR c++/24103
authorreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Dec 2005 12:48:06 +0000 (12:48 +0000)
committerreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Dec 2005 12:48:06 +0000 (12:48 +0000)
* g++.dg/other/default1.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107889 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 27a310f..63c2cff 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) {}