This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: GCC Hexadecimal Floating point constant handling
- From: Ian Lance Taylor <iant at google dot com>
- To: Ameya Malondkar <ameya dot malondkar at tcs dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Wed, 04 Nov 2009 06:24:08 -0800
- Subject: Re: GCC Hexadecimal Floating point constant handling
- References: <26191496.post@talk.nabble.com>
Ameya Malondkar <ameya.malondkar@tcs.com> writes:
> GCC accepts constructs such as : float p = 0x.p5;
...
> As per the grammar to my understanding, the above construct is invalid.
> Just wanted to know whether the support for the above construct is a GCC
> Extension or my understanding of the grammar is incorrect?
I agree. Per the grammar, this should not be recognized.
It does not real harm, but would you like to file a bug report? See
http://gcc.gnu.org/bugs.html . Thanks.
Ian