::
I don’t have this issue with my compiler, but perhaps a hint, that could help:
static_assert() without a message is a C++17 feature (cppreference)
So it could be, that your IDE is using another toolchain for this messages, than you would like to use (had this issue with another IDE)
You could try to compile it with the flag /Wall active, to get further information.