Open
Description
Minimised to https://godbolt.org/z/96d8bnsKa:
#define _LIBCPP_DIAGNOSTIC_POP _Pragma("clang diagnostic pop")
#define A \
(_Pragma("clang diagnostic push") \
_Pragma("clang diagnostic ignored \"-Wconstant-evaluated\"") \
__builtin_is_constant_evaluated() \
_LIBCPP_DIAGNOSTIC_POP)
#define echo(...) __VA_ARGS__
static_assert(echo(A), "");
<source>:11:20: warning: '__builtin_is_constant_evaluated' will always evaluate to 'true' in a manifestly constant-evaluated expression [-Wconstant-evaluated]
11 | static_assert(echo(A), "");
| ^
<source>:6:4: note: expanded from macro 'A'
6 | __builtin_is_constant_evaluated() \
| ^