From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15258 invoked by alias); 23 Aug 2002 19:46:02 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 15239 invoked by uid 71); 23 Aug 2002 19:46:01 -0000 Resent-Date: 23 Aug 2002 19:46:01 -0000 Resent-Message-ID: <20020823194601.15236.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org, Sylvain.Pion@sophia.inria.fr Resent-Reply-To: gcc-gnats@gcc.gnu.org, Sylvain.Pion@sophia.inria.fr Received: (qmail 13915 invoked by uid 61); 23 Aug 2002 19:43:12 -0000 Message-Id: <20020823194312.13914.qmail@sources.redhat.com> Date: Fri, 23 Aug 2002 12:46:00 -0000 From: Sylvain.Pion@sophia.inria.fr Reply-To: Sylvain.Pion@sophia.inria.fr To: gcc-gnats@gcc.gnu.org Cc: Sylvain.Pion@sophia.inria.fr X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) X-GNATS-Notify: Sylvain.Pion@sophia.inria.fr Subject: libstdc++/7706: asinh, acosh, atanh are not put in std:: by X-SW-Source: 2002-08/txt/msg00503.txt.bz2 List-Id: >Number: 7706 >Category: libstdc++ >Synopsis: asinh, acosh, atanh are not put in std:: by >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: rejects-legal >Submitter-Id: net >Arrival-Date: Fri Aug 23 12:46:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Sylvain Pion >Release: 2.95, 3.0, 3.1, 3.2, 3.3 >Organization: >Environment: Reading specs from ./gcc/Linux_trunc/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.3/specs Configured with: /u/zosma/0/prisme/spion/gcc/gcc_trunc/configure --disable-shared --disable-nls --enable-languages=c++ --prefix=/u/zosma/0/prisme/spion/gcc/Linux_trunc --with-gnu-as --with-gnu-ld --with-as=/u/zosma/0/prisme/spion/gcc/Binutils/Linux/bin/as --with-ld=/u/zosma/0/prisme/spion/gcc/Binutils/Linux/bin/ld Thread model: posix gcc version 3.3 20020813 (experimental) as well as : Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1.1/specs Configured with: ../gcc-3.1.1/configure --enable-threads --enable-version-specific-runtime-libs --with-system-zlib Thread model: posix gcc version 3.1.1 >Description: The C++ standard says all functions from the standard C library from math.h should be put in namespace std by . asinh/acosh/atanh are in the ISO C 99 standard math.h (at least in my draft of the std), but they are not in g++'s . I don't know if it's because they were not present in the previous C standard version the C++ std is based on (?). In any case, it would be nice to have them in std:: like the others. Compiling the following program gives : essai_asinh.C: In function `int main()': essai_asinh.C:6: error: `asinh' undeclared in namespace `std' essai_asinh.C:7: error: `acosh' undeclared in namespace `std' essai_asinh.C:8: error: `atanh' undeclared in namespace `std' >How-To-Repeat: #include int main() { double d; std::asinh(d); std::acosh(d); std::atanh(d); } >Fix: >Release-Note: >Audit-Trail: >Unformatted: