Shih-wei Liao | f8fd82b | 2010-02-10 11:10:31 -0800 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
2 | |||||
3 | // PR5868 | ||||
4 | struct T0 { | ||||
5 | int x; | ||||
6 | union { | ||||
7 | void *m0; | ||||
8 | }; | ||||
9 | }; | ||||
10 | template <typename T> | ||||
11 | struct T1 : public T0, public T { | ||||
12 | void f0() { | ||||
13 | m0 = 0; // expected-error{{ambiguous conversion}} | ||||
14 | } | ||||
15 | }; | ||||
16 | |||||
17 | struct A : public T0 { }; | ||||
18 | |||||
19 | void f1(T1<A> *S) { S->f0(); } // expected-note{{instantiation of member function}} |