2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / inherit / covariant6.C
blobdc55971533ec07954a8286c18b0a80ffe74a89a0
1 // { dg-do compile }
3 // Copyright (C) 2002 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 27 Dec 2002 <nathan@codesourcery.com>
6 // We ICE'd
8 struct c0 {};
10 struct c1 : virtual c0
12   virtual c0 &f2();
15 struct c3 : virtual c1
17   virtual c1 &f2();
20 c1 &c3::f2()
22   throw 0;
25 struct c4 : virtual c3