1 // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11
19 void foo(C c
, int A::* pmf
) {
20 int i
= c
->*pmf
; // expected-error {{use of overloaded operator '->*' is ambiguous}} \
21 // expected-note {{built-in candidate operator->*(const struct A *, int struct A::*)}} \
22 // expected-note {{built-in candidate operator->*(struct A *, int struct A::*)}}