From: Nathan Sidwell Date: Mon, 9 May 2005 11:52:44 +0000 (+0000) Subject: re PR c++/21427 ([3.4/4.0 only] Failure in make_thunk, cp/method.c:145 when compiling... X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f2710beab66da672ce5759404176a9561d5ad518;p=platform%2Fupstream%2Fgcc.git re PR c++/21427 ([3.4/4.0 only] Failure in make_thunk, cp/method.c:145 when compiling with multiply-inherited members) PR c++/21427 * g++.dg/inherit/covariant13.C: New. From-SVN: r99431 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b83ef7c..5f9a7da 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2005-05-09 Nathan Sidwell + + PR c++/21427 + * g++.dg/inherit/covariant13.C: New. + 2005-05-09 Francois-Xavier Coudert PR libfortran/19155 diff --git a/gcc/testsuite/g++.dg/inherit/covariant13.C b/gcc/testsuite/g++.dg/inherit/covariant13.C new file mode 100644 index 0000000..af60840 --- /dev/null +++ b/gcc/testsuite/g++.dg/inherit/covariant13.C @@ -0,0 +1,25 @@ +// Copyright (C) 2004 Free Software Foundation, Inc. +// Contributed by Nathan Sidwell 8 May 2005 + +// Origin:Andrew Pinski: pinskia@gcc.gnu.org +// PR 21427: ICE on valid + +struct B1 { + public: + virtual void foo(); +}; + +struct B2 { + public: + virtual B2 & bar() = 0; +}; + +struct I : public B1, B2 { + public: + virtual ~I(); + virtual I & bar(); +}; + +struct D : public I { + virtual ~D(); +};