As a result of some discussion about placement of const, I started to wonder if you can have multiple const qualifiers to the same type:
#include <iostream>
int main()
{
const const int a = 5;
std::cout << a;
}
Don't worry, I'm not going to write code like this
Turns out, clang and MSVC accept the code with a warning, but GCC rejects it: https://godbolt.org/z/TdYnvc
Which compiler is right?