Op here. Yea this only occurs on Windows with MinGW. Visual C++ and Clang do not have this issue. None of the Linux compilers I tested also had this issue.
And yea you're right on the associative mistake. Will correct this :)
And yea you're right on the associative mistake. Will correct this :)