Lines Matching +full:re +full:- +full:evaluates
1 // RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s
4 int nonconst = 8; // expected-note 3 {{here}}
5 …ar { NCE = nonconst }; // expected-error {{enumerator value is not a constant expression}} expecte…
6 …uct NonConstT {}; // expected-error {{non-type template argument is not a constant expression}} ex…
9 …case nonconst: // expected-error {{case value is not a constant expression}} expected-note {{read … in NonConstF()
34 // user-defined conversions,
38 // lvalue-to-rvalue conversions,
50 case EE::EE32: // expected-error {{not implicitly convertible}} in b()
53 …case (long long)1e10: // expected-error {{case value evaluates to 10000000000, which cannot be nar… in b()
54 …case -3: // expected-error {{case value evaluates to -3, which cannot be narrowed to type 'unsigne… in b()
61 b = EE::EE32, // expected-error {{not implicitly convertible}}
64 …e = 123456, // expected-error {{enumerator value evaluates to 123456, which cannot be narrowed to …
65 …f = -3 // expected-error {{enumerator value evaluates to -3, which cannot be narrowed to type 'uns…
69 using Int = A<EE::EE32>; // expected-error {{not implicitly convertible}}
72 using Int = A<1000>; // expected-error {{template argument evaluates to 1000, which cannot be narro…
73 using Int = A<-3>; // expected-error {{template argument evaluates to -3, which cannot be narrowed …
81 static_assert(Val<bool, E5>::value == 1, ""); // expected-error {{5, which cannot be narrowed to ty…
84 using Int = A<1.0>; // expected-error {{conversion from 'double' to 'unsigned char' is not allowed …
86 …True = &a, // expected-error {{conversion from 'bool (*)(int)' to 'bool' is not allowed in a conve…
87 …False = nullptr // expected-error {{conversion from 'nullptr_t' to 'bool' is not allowed in a conv…
91 switch (bool b = a(5)) { // expected-warning {{boolean value}} in c()
92 …case 0.0f: // expected-error {{conversion from 'float' to 'int' is not allowed in a converted cons… in c()
96 …mplate <bool B> int f() { return B; } // expected-note {{candidate template ignored: invalid expli… in f()
97 template int f<&S::operator int>(); // expected-error {{does not refer to a function template}}
100 int n = Val<bool, &S::operator int>::value; // expected-error-re {{conversion from 'int (S::*)(){{(…