// RUN: %clang_cc1 -fms-extensions -std=c++11 %s -verify
;
;
X<int>::type i1;
X<int>::type2 i2; // expected-error{{no type named 'type2' in 'X<int>'}}
X<int>::type3 i3;
X<int>::type4 i4; // expected-error{{no type named 'type4' in 'X<int>'}}
;
;
void
; // expected-note{{in instantiation of function template specialization 'f<HasFoo>' requested here}}
;
void