https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114731
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Because the inner _Generic gets selected first and then outter one is selected. Also note clang has the same behavior . Note the syntax error is just a2i should not have a comma in it.