1 // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11
8 operator E
*(); // expected-note{{candidate function}}
14 operator E
*(); // expected-note{{candidate function}}
25 void foo(C c
, int A::* pmf
) {
37 void foo1(C1 c1
, int A::* pmf
) {
42 void foo1(C1 c1
, int E::* pmf
) {
43 int i
= c1
->*pmf
; // expected-error {{use of overloaded operator '->*' is ambiguous}} \
44 // expected-note {{because of ambiguity in conversion of 'C1' to 'E *'}} \
45 // expected-note 2 {{built-in candidate operator}}