1 // RUN: %clang_cc1 -std=c++11 -verify %s
6 friend int operator->*(A
, A
);
12 // Associated classes for B are {B, A}
13 // Associated classes for B::E are {B} (non-transitive in this case)
15 // If we search B::E first, we must not mark B "visited" and shortcircuit
16 // visiting it later, or we won't find the associated class A.
17 int k0
= B::e
->* B::e
; // expected-error {{non-pointer-to-member type}}
18 int k1
= B::e
->* B();
19 int k2
= B() ->* B::e
;