https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103939
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- I doubt they have, but if it's a concern, warn when the second argument is a sizeof expression and the third is any integer literal. That should catch cases where it matters.