https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114877
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Joseph, your thoughts on this?
Looking at what the libm implementations do, in what I saw in glibc and newlib,
it stores 0 to what the second argument points to, but e.g. musl doesn't store
anything.
And using an uninitialized value is UB, so if musl is conforming, then the
testcase is invalid.