3 // Contributed by Nathan Sidwell 23 Oct 2003 <nathan@codesourcery.com>
4 // Origin: grigory@stl.sarov.ru
5 // PR c++/12700 ICE with covariancy
10 virtual c2& f8() { static c2 a; return a; }
14 virtual c2& f8() { static c2 a; return a; }
17 struct c11 : public c1 {
18 virtual c3& f8() { static c3 a; return a; }
21 struct c15 : virtual c3 {
22 virtual c2& f8() { static c3 a; return a; }
25 struct c18 : virtual c11 {
29 c15& c18::f8() { throw 0; }