21 lines · cpp
1// RUN: %clang_cc1 -verify %s2// RUN: %clang_cc1 -std=c++11 -verify %s3// RUN: %clang_cc1 -std=c++17 -verify %s4// RUN: %clang_cc1 -std=c++1z -verify %s5 6class A {7public:8 static const char X;9};10const char A::X = 0;11 12template<typename U> void func() noexcept(U::X);13 14template<class... B, char x>15void foo(void(B...) noexcept(x)) {} // expected-note{{candidate template ignored}}16 17void bar()18{19 foo(func<A>); // expected-error{{no matching function for call}}20}21