This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/14649] New: atan(1.0) should not be a constant expression
- From: "jsm28 at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Mar 2004 11:47:25 -0000
- Subject: [Bug middle-end/14649] New: atan(1.0) should not be a constant expression
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
double atan(double);
const double pi = 4*atan(1.0);
should yield an error. The constraints on constant expressions
prohibit evaluated function calls. This is a regression in 3.4.
--
Summary: atan(1.0) should not be a constant expression
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jsm28 at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14649