public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/7706: asinh, acosh, atanh are not put in std:: by <cmath>
@ 2003-05-11  9:26 Gabriel Dos Reis
  0 siblings, 0 replies; 7+ messages in thread
From: Gabriel Dos Reis @ 2003-05-11  9:26 UTC (permalink / raw)
  To: gdr; +Cc: gcc-prs

The following reply was made to PR libstdc++/7706; it has been noted by GNATS.

From: Gabriel Dos Reis <gdr@acm.org>
To: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gdr@gcc.gnu.org,
	Sylvain.Pion@sophia.inria.fr, gcc-prs@gcc.gnu.org
Cc:  
Subject: Re: libstdc++/7706: asinh, acosh, atanh are not put in std:: by <cmath>
Date: Sun, 11 May 2003 11:23:28 +0200

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7706
 
 Sylvain --
 
   This is not a bug nor an oversight in libstdc++.
 Contrary to your assertion, the Standard does not say that
 asinh, acosh and atanh should be put in namespace std::.
 Have a look at table 80.
 
 -- Gaby


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: libstdc++/7706: asinh, acosh, atanh are not put in std:: by <cmath>
@ 2002-08-24  0:26 Gabriel Dos Reis
  0 siblings, 0 replies; 7+ messages in thread
From: Gabriel Dos Reis @ 2002-08-24  0:26 UTC (permalink / raw)
  To: gdr; +Cc: gcc-prs

The following reply was made to PR libstdc++/7706; it has been noted by GNATS.

From: Gabriel Dos Reis <gdr@integrable-solutions.net>
To: Sylvain.Pion@sophia.inria.fr
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: libstdc++/7706: asinh, acosh, atanh are not put in std:: by <cmath>
Date: 24 Aug 2002 08:02:37 +0200

 Let me exapnd a bit on this.
 
 Sylvain.Pion@sophia.inria.fr writes:
 
 | asinh/acosh/atanh are in the ISO C 99 standard math.h
 
 A torny issue is how to handle functions added by C99 but not present
 in C90 (which C++ use).  The above three functions are -not- defined
 by C++.  They might slip into your codes because your system <math.h>
 define them.  In that case, we don't try to to anything with them.
 
 I would much prefer to leave them as is for the moment, and devise a
 general approach to C99 extensions.
 
 | 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'
 
 This cannot be qualified as "rejects-legal" since the code is
 technically invalid.
 
 -- Gaby


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: libstdc++/7706: asinh, acosh, atanh are not put in std:: by <cmath>
@ 2002-08-23 23:16 gdr
  0 siblings, 0 replies; 7+ messages in thread
From: gdr @ 2002-08-23 23:16 UTC (permalink / raw)
  To: Sylvain.Pion, gcc-bugs, gcc-prs, gdr, nobody

Synopsis: asinh, acosh, atanh are not put in std:: by <cmath>

Responsible-Changed-From-To: unassigned->gdr
Responsible-Changed-By: gdr
Responsible-Changed-When: Fri Aug 23 23:08:19 2002
Responsible-Changed-Why:
    Mine.
State-Changed-From-To: open->analyzed
State-Changed-By: gdr
State-Changed-When: Fri Aug 23 23:08:19 2002
State-Changed-Why:
    .

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7706


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: libstdc++/7706: asinh, acosh, atanh are not put in std:: by <cmath>
@ 2002-08-23 23:08 Gabriel Dos Reis
  0 siblings, 0 replies; 7+ messages in thread
From: Gabriel Dos Reis @ 2002-08-23 23:08 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR libstdc++/7706; it has been noted by GNATS.

From: Gabriel Dos Reis <gdr@integrable-solutions.net>
To: Sylvain Pion <Sylvain.Pion@sophia.inria.fr>
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: libstdc++/7706: asinh, acosh, atanh are not put in std:: by <cmath>
Date: 24 Aug 2002 07:56:29 +0200

 Sylvain Pion <Sylvain.Pion@sophia.inria.fr> writes:
 
 | On Sat, Aug 24, 2002 at 12:50:22AM +0200, Gabriel Dos Reis wrote:
 | > Sylvain.Pion@sophia.inria.fr writes:
 | > 
 | > | >Description:
 | > | The C++ standard says all functions from the standard C library from
 | > | math.h should be put in namespace std by <cmath>.
 | > 
 | > This is a known and recurent issue with inherited C headers.
 | 
 | So is it just an oversight of libstdc++ that these 3 functions are
 
 I won't say it was an oversight.
 
 | not treated 
 | like sin, cos, tan, asin, acos, atan, sinh, cosh, tanh ?
 | If so I may give a try at adding support for them.
 
 Please.
 
 -- Gaby


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: libstdc++/7706: asinh, acosh, atanh are not put in std:: by <cmath>
@ 2002-08-23 18:06 Sylvain Pion
  0 siblings, 0 replies; 7+ messages in thread
From: Sylvain Pion @ 2002-08-23 18:06 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR libstdc++/7706; it has been noted by GNATS.

From: Sylvain Pion <Sylvain.Pion@sophia.inria.fr>
To: Gabriel Dos Reis <gdr@integrable-solutions.net>
Cc: Sylvain.Pion@sophia.inria.fr, gcc-gnats@gcc.gnu.org
Subject: Re: libstdc++/7706: asinh, acosh, atanh are not put in std:: by <cmath>
Date: Sat, 24 Aug 2002 01:26:49 +0200

 On Sat, Aug 24, 2002 at 12:50:22AM +0200, Gabriel Dos Reis wrote:
 > Sylvain.Pion@sophia.inria.fr writes:
 > 
 > | >Description:
 > | The C++ standard says all functions from the standard C library from
 > | math.h should be put in namespace std by <cmath>.
 > 
 > This is a known and recurent issue with inherited C headers.
 
 So is it just an oversight of libstdc++ that these 3 functions are not treated
 like sin, cos, tan, asin, acos, atan, sinh, cosh, tanh ?
 If so I may give a try at adding support for them.
 
 -- 
 Sylvain


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: libstdc++/7706: asinh, acosh, atanh are not put in std:: by <cmath>
@ 2002-08-23 16:06 Gabriel Dos Reis
  0 siblings, 0 replies; 7+ messages in thread
From: Gabriel Dos Reis @ 2002-08-23 16:06 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR libstdc++/7706; it has been noted by GNATS.

From: Gabriel Dos Reis <gdr@integrable-solutions.net>
To: Sylvain.Pion@sophia.inria.fr
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: libstdc++/7706: asinh, acosh, atanh are not put in std:: by <cmath>
Date: 24 Aug 2002 00:50:22 +0200

 Sylvain.Pion@sophia.inria.fr writes:
 
 | >Description:
 | The C++ standard says all functions from the standard C library from math.h should be put in namespace std by <cmath>.
 
 
 This is a known and recurent issue with inherited C headers.
 
 -- Gaby


^ permalink raw reply	[flat|nested] 7+ messages in thread

* libstdc++/7706: asinh, acosh, atanh are not put in std:: by <cmath>
@ 2002-08-23 12:46 Sylvain.Pion
  0 siblings, 0 replies; 7+ messages in thread
From: Sylvain.Pion @ 2002-08-23 12:46 UTC (permalink / raw)
  To: gcc-gnats; +Cc: Sylvain.Pion


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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-05-11  9:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-11  9:26 libstdc++/7706: asinh, acosh, atanh are not put in std:: by <cmath> Gabriel Dos Reis
  -- strict thread matches above, loose matches on Subject: below --
2002-08-24  0:26 Gabriel Dos Reis
2002-08-23 23:16 gdr
2002-08-23 23:08 Gabriel Dos Reis
2002-08-23 18:06 Sylvain Pion
2002-08-23 16:06 Gabriel Dos Reis
2002-08-23 12:46 Sylvain.Pion

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).