From: Volker Reichelt Date: Fri, 2 Dec 2005 12:48:06 +0000 (+0000) Subject: re PR c++/24103 (ICE in simple_cst_equal) X-Git-Tag: releases/gcc-4.2.0~5613 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=631ba327ca4f5b4053b9cbeefbbf1ce0183606ae;p=thirdparty%2Fgcc.git re PR c++/24103 (ICE in simple_cst_equal) PR c++/24103 * g++.dg/other/default1.C: New test. From-SVN: r107889 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 27a310f604c2..63c2cff7730c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2005-12-02 Volker Reichelt + + PR c++/24103 + * g++.dg/other/default1.C: New test. + 2005-12-02 Richard Guenther * 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 index 000000000000..a6d968185637 --- /dev/null +++ b/gcc/testsuite/g++.dg/other/default1.C @@ -0,0 +1,22 @@ +// PR c++/24103 +// ICE in simple_cst_equal +// Origin: Alexander Stepanov +// { dg-do compile } +// { dg-options "" } + +struct S +{ + int i; +}; + +struct A +{ + A(S = (S){0}); +}; + +struct B +{ + B(S = (S){0}); +}; + +B::B(S) {}