This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/48891] std functions conflicts with C functions when building with c++0x support (and using namespace std)
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 13 Jan 2016 16:26:28 +0000
- Subject: [Bug libstdc++/48891] std functions conflicts with C functions when building with c++0x support (and using namespace std)
- Auto-submitted: auto-generated
- References: <bug-48891-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48891
--- Comment #11 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Wed Jan 13 16:25:56 2016
New Revision: 232327
URL: https://gcc.gnu.org/viewcvs?rev=232327&root=gcc&view=rev
Log:
Use ::isinf and ::isnan if libc defines them
PR libstdc++/48891
* acinclude.m4 (GLIBCXX_CHECK_MATH11_PROTO): Check for obsolete isinf
and isnan functions.
* config.h.in: Regenerate.
* configure: Regenerate.
* include/c_global/cmath (isinf(double), isnan(double))
[_GLIBCXX_HAVE_OBSOLETE_ISINF_ISNAN]: Import via using-directive.
* testsuite/26_numerics/headers/cmath/48891.cc: New.
Added:
trunk/libstdc++-v3/testsuite/26_numerics/headers/cmath/48891.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/acinclude.m4
trunk/libstdc++-v3/config.h.in
trunk/libstdc++-v3/configure
trunk/libstdc++-v3/include/c_global/cmath