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 ;-)

Reply via email to