blob: 7e20af35394b82eb3047f902d73434700872953c [file] [log] [blame]
Fariborz Jahanianad3607d2009-10-09 17:09:58 +00001// RUN: clang-cc -fsyntax-only -verify %s -std=c++0x
2
3struct A {};
4
5struct R {
6 operator const A*();
7};
8
9
10struct B : R {
11 operator A*();
12};
13
14struct C : B {
15
16};
17
18
19void foo(C c, int A::* pmf) {
20 // FIXME. Why so many built-in candidates?
21 int i = c->*pmf; // expected-error {{use of overloaded operator '->*' is ambiguous}} \
22 // expected-note 40 {{built-in candidate operator ->* ('struct A}}
23}
24