// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++1z -triple=x86_64-linux-gnu template struct S1 { static constexpr const bool value = false; }; template inline constexpr bool global_inline_var = S1::value; template struct S2 { template static inline constexpr bool var = global_inline_var; }; template void foo() { static_assert(S1::value); // expected-error@-1{{static_assert failed due to requirement 'S1::value'}} } template void foo(); // expected-note@-1{{in instantiation of function template specialization 'foo' requested here}} template void foo2() { static_assert(global_inline_var); // expected-error@-1{{static_assert failed due to requirement 'global_inline_var'}} } template void foo2(); // expected-note@-1{{in instantiation of function template specialization 'foo2' requested here}} template void foo3() { static_assert(T::template var); // expected-error@-1{{static_assert failed due to requirement 'S2::var'}} } template void foo3, int, float>(); // expected-note@-1{{in instantiation of function template specialization 'foo3, int, float>' requested here}} template void foo4() { static_assert(S1::value, ""); // expected-error@-1{{static_assert failed due to requirement 'S1::value'}} }; template void foo4(); // expected-note@-1{{in instantiation of function template specialization 'foo4' requested here}}