Bug 63324 - hexidecimal integer constant and addition
Summary: hexidecimal integer constant and addition
Status: RESOLVED DUPLICATE of bug 3885
Alias: None
Product: gcc
Classification: Unclassified
Component: c (show other bugs)
Version: 5.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-22 03:00 UTC by kargls
Modified: 2014-09-22 05:13 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kargls 2014-09-22 03:00:42 UTC
#include <stdio.h>

int
main(void)
{
        int i;
        i = 0x3ffe+63; printf("%x\n", i);
        return 0;
}

% gcc47 -c ~/tmp/a.c
/home/kargl/tmp/a.c: In function 'main':
/home/kargl/tmp/a.c:7:6: error: invalid suffix "+63" on integer constant

+ is a binary operator. 0x3ffe is a hexidecimal constant and 63
is a decimal constant.
Comment 1 Andrew Pinski 2014-09-22 05:12:11 UTC
Dup of bug 44272.

*** This bug has been marked as a duplicate of bug 44272 ***
Comment 2 Andrew Pinski 2014-09-22 05:13:03 UTC
Actually bug 3885.

*** This bug has been marked as a duplicate of bug 3885 ***