1*c48442c9SRichard Smith // RUN: %clang_cc1 -std=c++2a -verify %s 2*c48442c9SRichard Smith 3*c48442c9SRichard Smith template<typename T> notdefined<T::any> PR45207; // expected-error {{no template named 'notdefined'}} 4*c48442c9SRichard Smith 5*c48442c9SRichard Smith // FIXME: We don't disambiguate this as an undeclared template-id even though there's nothing else it could be. 6*c48442c9SRichard Smith template<typename T> int var_template(notdefined<T::any>); // expected-error {{undeclared identifier 'notdefined'}} expected-error {{expected expression}} 7*c48442c9SRichard Smith 8*c48442c9SRichard Smith // FIXME: We don't disambiguate this as a function template even though it can't be a variable template due to the ', int'. 9*c48442c9SRichard Smith template<typename T> int fn_template(notdefined<T::any>, int); // expected-error {{undeclared identifier 'notdefined'}} expected-error {{expected expression}} expected-error {{expected '('}} 10