https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104326 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I think there is a c++ standard defect report about this case. The problem is the conversion of unsigned and long.