template <typename T>
inline constexpr int a = 1;
static_assert(&a<void>, "");
This does not compile on gcc 9.2, but compiles on both clang and msvc.
Gcc complains that the expression used for static_assert
is not constant expression.
The code compiles after removing template, removing inline, or removing address-of operator.
Is this a gcc bug?