1 // RUN: %clang_cc1 -fsyntax-only -verify %s
19 X0 (X0::f0
)(int) { return X0(); }
35 template<typename U
> X1(U
);
40 template<typename T
> X1
<T
>::X1() { }
41 template<typename T
> (X1
<T
>::X1
)(double) { }
42 template<typename T
> X1
<T
> X1
<T
>::f1(int) { return 0; }
43 template<typename T
> X1
<T
> (X1
<T
>::f1
)(type
) { return 0; }
46 X2::X2(); // expected-error {{extra qualification on member 'X2'}}
49 // We used to parse 'X3::X3' as a member function declaration.
50 // DR 1435 and DR 1310 made this invalid.
53 X3::X3(T1()); // expected-error {{extra qualification on member 'X3'}}