[Bug 213995] astro/marble: fix for lang/gcc5

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Nov 2 12:05:09 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213995

--- Comment #6 from Kenneth Salerno <kennethsalerno at yahoo.com> ---
(In reply to Tobias C. Berner from comment #3)
including <cmath> has the same result - isnan is declared in scope of the
namespace std for lang/gcc5.

/usr/local/lib/gcc5/include/c++/cmath:

namespace std _GLIBCXX_VISIBILITY(default)
{
   constexpr bool
   isnan(float __x)
   { return __builtin_isnan(__x); }


whereas clang++ has "using ::isnan" in /usr/include/c++/v1/cmath, making it
accessible as both std::isnan and just isnan:

namespace std
{
   bool isnan(arithmetic x);
   using ::isnan;

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the kde-freebsd mailing list