summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/inherit/covariant10.C
blob: fe5d03c27d3ae288b9d6ae023e42a3fc4f5584c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// { dg-do compile }

// Contributed by Nathan Sidwell 23 Oct 2003 <nathan@codesourcery.com>
// Origin: grigory@stl.sarov.ru
// PR c++/12699 ICE with covariancy

struct c1 {
  virtual void f1() const {}
};

struct c5 {};

struct c6 : virtual c1 {
  virtual c5* f33() const {}
};

struct c13 : virtual c5 { };

struct c17 : virtual c6
{
  virtual c13* f33() const {}
};