This is the mail archive of the
mailing list for the GCC project.
Re: Is this a compiler bug?
- From: Ed Smith-Rowland <3dw4rd at verizon dot net>
- To: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>, Andrew Pinski <pinskia at gmail dot com>
- Cc: GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: Sun, 21 Sep 2014 22:49:53 -0400
- Subject: Re: Is this a compiler bug?
- Authentication-results: sourceware.org; auth=none
- References: <20140922012346 dot GA4376 at troutmask dot apl dot washington dot edu> <CA+=Sn1nT8by8dUHugr_Ye8TYmSbGS6Axbbmau7d+-d7WCUVPfQ at mail dot gmail dot com> <20140922015627 dot GA4508 at troutmask dot apl dot washington dot edu>
On 09/21/2014 09:56 PM, Steve Kargl wrote:
+ is a binary operator. 0x3ffe is a hexidecimal-constant according
to 18.104.22.168 in n1256.pdf. 63 is, of course, a decimal-constant.
Also, a hex floating point uses p as an exponent for this reason...
These should just be adding integers.
i = 0x3ffe+63; /* integral */
i = 0x3ffp+63; /* floating point */
Post the PR.
I did a lot of stuff in this area for C++11 user-defined literals.
I either caused it of I might be able to help.