This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c/4378: too large constant should be an error
- From: rth at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, h dot b dot furuseth at usit dot uio dot no, nobody at gcc dot gnu dot org
- Date: 24 Apr 2002 22:06:26 -0000
- Subject: Re: c/4378: too large constant should be an error
- Reply-to: rth at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, h dot b dot furuseth at usit dot uio dot no, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: too large constant should be an error
State-Changed-From-To: open->closed
State-Changed-By: rth
State-Changed-When: Wed Apr 24 15:06:26 2002
State-Changed-Why:
You got a diagnostic, which is all that is required by the standard.
As for why 1e999 is useful, this is a common way to get
HUGE_VAL defined as either +Inf or DBL_MAX, depending on
whether the target supports infinities.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4378