something is really not not right about the c++ code in different platform compiled by different version of g++