OSDN Git Service

PR c++/21427
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 May 2005 11:52:44 +0000 (11:52 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 May 2005 11:52:44 +0000 (11:52 +0000)
* g++.dg/inherit/covariant13.C: New.

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

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

index b83ef7c..5f9a7da 100644 (file)
@@ -1,3 +1,8 @@
+2005-05-09  Nathan Sidwell  <nathan@codesourcery.com>
+
+       PR c++/21427
+       * g++.dg/inherit/covariant13.C: New.
+
 2005-05-09  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
 
        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 (file)
index 0000000..af60840
--- /dev/null
@@ -0,0 +1,25 @@
+// Copyright (C) 2004 Free Software Foundation, Inc.
+// Contributed by Nathan Sidwell 8 May 2005<nathan@codesourcery.com>
+
+// 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(); 
+};