I think that the 4.71 number is a reference to a TDM compiler, not a CodeBlocks version... usual confusion between a compiler and an IDE !
The last distributed C::B version is 17.12 and it contains (if you choose the right file, with MinGW) a 5.1 TDM version of MinGW compiler.
Nevertheless, you can find and install other compilers, for example MinGW 64, version 8.1, able to compile your code in 32 bits (as old Windows compilers), but also in 64 bits. This is the version used to compile the nightly distribution of CodeBlocks (seh + posix version I think).