From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6622 invoked by alias); 22 Jul 2011 11:30:45 -0000 Received: (qmail 6613 invoked by uid 22791); 22 Jul 2011 11:30:45 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 22 Jul 2011 11:30:30 +0000 From: "rguenther at suse dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/49813] [C++0x] sinh vs asinh vs constexpr X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenther at suse dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Fri, 22 Jul 2011 11:30:00 -0000 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: 2011-07/txt/msg01837.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49813 --- Comment #14 from rguenther at suse dot de 2011-07-22 11:29:04 UTC --- On Fri, 22 Jul 2011, paolo.carlini at oracle dot com wrote: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49813 > > --- Comment #11 from Paolo Carlini 2011-07-22 11:20:36 UTC --- > It does *not* Richi, there is an using ::asinh above. Exactly the same for > sinh. There is also a using ::asinhf but still std:: provides an overload. Please provide a _complete_ standalone testcase that you think should work and does not (w/o any includes). I suspect it's because of DEF_C99_BUILTIN (BUILT_IN_CASINH, "casinh", BT_FN_COMPLEX_DOUBLE_COMPLEX_DOUBLE, ATTR_MATHFN_FPROUNDING) so if -std=c++0x does not include C99 functions then we have no implicit builtin support and the following does not work: extern "C" double asinh(double x); namespace std { using ::asinh; } int main() { constexpr double das = std::asinh(1.0); } it also does not work with namespace std { double asinh (double x) { return __builtin_asinh (x); } } int main() { constexpr double das = std::asinh(1.0); // Doesn't compile. } but it works with int main() { constexpr double das = __builtin_asinh(1.0); // Doesn't compile. } which means this is still a C++ frontend / library issue.