This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/48891] std functions conflicts with C functions when building with c++0x support (and using namespace std)


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]