https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81745
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=68994
--- Comment #13 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Sam James from comment #11)
> Came across this because Clang has this warning for -pedantic but GCC
> doesn't.
GCC removed the pedwarning on purpose (between GCC 4.1 and 4.4), see PR 14331
and PR 68994.
https://gcc.gnu.org/legacy-ml/gcc-patches/2007-04/msg00651.html
is the specific one about GCC's behavior and since it is considered undefined
at compile time (not a runtime one) GCC behavior is correct so is clang