Firstly, isn’t that a syntax error? There’s a stray “const” in there. You probably meant
const int * const hello = &world;
Secondly, what should the compiler complain about? You have a const int, and then a const pointer to const int, pointing to that first const int. What’s the problem?
Thirdly, the latest C version supported by GCC is “-std=c17”.