Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 02 Nov 2016 12:05:09 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 213995] astro/marble: fix for lang/gcc5
Message-ID:  <bug-213995-13-IyvhbW1s90@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-213995-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-213995-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213995

--- Comment #6 from Kenneth Salerno <kennethsalerno@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;

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-213995-13-IyvhbW1s90>