From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22815 invoked by alias); 29 Aug 2008 18:47:20 -0000 Received: (qmail 22162 invoked by uid 48); 29 Aug 2008 18:46:00 -0000 Date: Fri, 29 Aug 2008 18:47:00 -0000 Message-ID: <20080829184600.22161.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/37276] Trouble with some (C99?) math builtins and namespace std In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "paolo dot carlini at oracle dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-08/txt/msg02384.txt.bz2 ------- 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