[Bug libstdc++/60401] stdlib.h does not provide abs(long) overload
glisse at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Mar 4 13:53:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60401
--- Comment #3 from Marc Glisse <glisse at gcc dot gnu.org> ---
(dup of PR 33935)
(In reply to Richard Biener from comment #1)
> If you include stdlib.h and not cstdlib it's a glibc bug, not a
> gcc/libstdc++ one.
It would make sense for libstdc++ to provide wrappers to the C headers, for all
the libc (not just glibc) that only handle C. We already provide complex.h,
fenv.h, tgmath.h.
(In reply to Jonathan Wakely from comment #2)
> Yes, but if glibc fixes it then we'll also need changes in libstdc++ to
> avoid duplicate definitions, so it needs coordination.
If they only add the C++03 declarations, they can reuse the same macros as
solaris without coordination. And libstdc++ can put in place macros for the new
C++11, ready for anyone to use. Of course it is better to make sure those match
what glibc is willing to do ;-)
More information about the Gcc-bugs
mailing list