blob: 59d1f25a4fd2a564bb2f02fcd06433c8f91eac57 [file] [log] [blame]
Douglas Gregor8aa5f402009-12-24 20:23:34 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3// PR5868
4struct T0 {
5 int x;
6 union {
7 void *m0;
8 };
9};
10template <typename T>
11struct T1 : public T0, public T {
12 void f0() {
13 m0 = 0; // expected-error{{ambiguous conversion}}
14 }
15};
16
17struct A : public T0 { };
18
19void f1(T1<A> *S) { S->f0(); } // expected-note{{instantiation of member function}}