From 631ba327ca4f5b4053b9cbeefbbf1ce0183606ae Mon Sep 17 00:00:00 2001 From: Volker Reichelt Date: Fri, 2 Dec 2005 12:48:06 +0000 Subject: [PATCH] re PR c++/24103 (ICE in simple_cst_equal) PR c++/24103 * g++.dg/other/default1.C: New test. From-SVN: r107889 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/other/default1.C | 22 ++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 gcc/testsuite/g++.dg/other/default1.C 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) {}