111
|
1 // { dg-do compile }
|
|
2
|
|
3 // Copyright (C) 2003 Free Software Foundation, Inc.
|
|
4 // Contributed by Nathan Sidwell 12 Dec 2003 <nathan@codesourcery.com>
|
|
5 // Origin: grigory@stl.sarov.ru
|
|
6
|
|
7 // PR c++/12881. ICE in thunk generation
|
|
8
|
|
9 struct c1 {};
|
|
10
|
|
11 struct c3 : virtual c1
|
|
12 {
|
131
|
13 virtual c1* f6() { return 0; }
|
111
|
14 int i;
|
|
15 };
|
|
16
|
|
17 struct c6 : virtual c3 { };
|
|
18
|
|
19 struct c7 : c3
|
|
20 {
|
131
|
21 virtual c3* f6() { return 0; }
|
111
|
22 };
|
|
23
|
|
24 struct c24 : virtual c7
|
|
25 {
|
|
26 virtual c6* f6();
|
|
27 };
|
|
28
|
|
29 c6* c24::f6() { return 0; }
|
|
30
|
|
31 struct c31 : c24 {};
|
|
32
|