We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 818f2cf commit 189674eCopy full SHA for 189674e
clang/test/SemaCXX/constant-expression-cxx11.cpp
@@ -2513,7 +2513,7 @@ void testValueInRangeOfEnumerationValues() {
2513
// expected-error@-1 {{constexpr variable 'x2' must be initialized by a constant expression}}
2514
// expected-note@-2 {{integer value 8 is outside the valid range of values [-8, 7] for the enumeration type 'E1'}}
2515
E1 x2b = static_cast<E1>(8); // ok, not a constant expression context
2516
- static_assert(static_cast<E1>(8));
+ static_assert(static_cast<E1>(8), "");
2517
// expected-error@-1 {{static assertion expression is not an integral constant expression}}
2518
2519
0 commit comments