public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Sylvain.Pion@sophia.inria.fr
To: gcc-gnats@gcc.gnu.org
Cc: Sylvain.Pion@sophia.inria.fr
Subject: libstdc++/7706: asinh, acosh, atanh are not put in std:: by <cmath>
Date: Fri, 23 Aug 2002 12:46:00 -0000	[thread overview]
Message-ID: <20020823194312.13914.qmail@sources.redhat.com> (raw)


>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:


             reply	other threads:[~2002-08-23 19:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-23 12:46 Sylvain.Pion [this message]
2002-08-23 16:06 Gabriel Dos Reis
2002-08-23 18:06 Sylvain Pion
2002-08-23 23:08 Gabriel Dos Reis
2002-08-23 23:16 gdr
2002-08-24  0:26 Gabriel Dos Reis
2003-05-11  9:26 Gabriel Dos Reis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020823194312.13914.qmail@sources.redhat.com \
    --to=sylvain.pion@sophia.inria.fr \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).