This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
libstdc++/7706: asinh, acosh, atanh are not put in std:: by <cmath>
- From: Sylvain dot Pion at sophia dot inria dot fr
- To: gcc-gnats at gcc dot gnu dot org
- Cc: Sylvain dot Pion at sophia dot inria dot fr
- Date: 23 Aug 2002 19:43:12 -0000
- Subject: libstdc++/7706: asinh, acosh, atanh are not put in std:: by <cmath>
- Reply-to: Sylvain dot Pion at sophia dot inria dot fr
>Number: 7706
>Category: libstdc++
>Synopsis: asinh, acosh, atanh are not put in std:: by <cmath>
>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 <cmath>.
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 <cmath>. 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 <cmath>
int main()
{
double d;
std::asinh(d);
std::acosh(d);
std::atanh(d);
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: