This is the mail archive of the
mailing list for the GCC project.
Re: Is this a compiler bug?
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Ed Smith-Rowland <3dw4rd at verizon dot net>
- Cc: Andrew Pinski <pinskia at gmail dot com>, GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: Sun, 21 Sep 2014 20:01:15 -0700
- 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> <541F8E51 dot 7080602 at verizon dot net>
On Sun, Sep 21, 2014 at 10:49:53PM -0400, Ed Smith-Rowland wrote:
> On 09/21/2014 09:56 PM, Steve Kargl wrote:
> > + is a binary operator. 0x3ffe is a hexidecimal-constant according
> > to 126.96.36.199 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.