OSDN Git Service

* name-lookup.c (current_decl_namespace): Non-static.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / inherit / covariant13.C
1 // Copyright (C) 2004 Free Software Foundation, Inc.
2 // Contributed by Nathan Sidwell 8 May 2005<nathan@codesourcery.com>
3
4 // Origin:Andrew Pinski: pinskia@gcc.gnu.org
5 // PR 21427: ICE on valid
6
7 struct B1 { 
8   public: 
9     virtual void foo(); 
10 }; 
11  
12 struct B2 { 
13   public: 
14     virtual B2 & bar() = 0; 
15 }; 
16  
17 struct I : public B1, B2 { 
18   public: 
19     virtual ~I(); 
20     virtual I & bar(); 
21 }; 
22  
23 struct D : public I { 
24     virtual ~D(); 
25 };