This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Is this a compiler bug?


On 09/21/2014 09:56 PM, Steve Kargl wrote:
+ is a binary operator.  0x3ffe is a hexidecimal-constant according
to 6.6.4.1 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.

Ed


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]