Make transitive relations an oracle option
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / conv8.C
blob205ad43828060821532078ca3b379e97d3f9b2a6
1 // { dg-do assemble  }
2 // Origin: Jakub Jelinek <jakub@redhat.com>
4 class bar
6 public:
7     bar();
8     virtual ~bar();
9     static void a();
12 class baz : public bar
16 class foo : virtual public baz
18 public:
19     static void a();
20     void b();
23 typedef void (bar::*T)();
24 T d;
26 void foo::a()
28     typedef void(foo::*t)();
29     t c = & foo::b;
30     d = (T) c;                  // { dg-error "pointer to member" }