This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/37276] Trouble with some (C99?) math builtins and namespace std
- From: "paolo dot carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Aug 2008 18:46:00 -0000
- Subject: [Bug c++/37276] Trouble with some (C99?) math builtins and namespace std
- References: <bug-37276-16141@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from paolo dot carlini at oracle dot com 2008-08-29 18:46 -------
FWIW, this kind of contortion appear to work, but really I'd rather prefer not
using it...
namespace my_std
{
inline double
atan(double __x)
{ return __builtin_atan(__x); }
inline double
atanh(double __x)
{ return __builtin_atanh(__x); }
}
namespace std
{
using ::my_std::atan;
using ::my_std::atanh;
}
int main()
{
std::atan(.3); // works
std::atanh(.3); // works
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37276