This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/47539] New: Compile fail at "0x0E+" procedure
- From: "yaxi1984 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 30 Jan 2011 02:13:49 +0000
- Subject: [Bug c/47539] New: Compile fail at "0x0E+" procedure
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47539
Summary: Compile fail at "0x0E+" procedure
Product: gcc
Version: 3.4.4
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: yaxi1984@gmail.com
The gcc will always compile fail on below lines:
/// file: fail.c
int main(void)
{
int a = 0x0E+0x0C;
return 0;
}
But, after add an "SPACE" after 0x0E, it will compile pass.
/// file: pass.c
int main(void)
{
int a = 0x0E +0x0C;
return 0;
}
This is always fail on gcc 3.4.4, the latest version is not verified yet.
Here is my build details:
D:\compiler\test_gcc_issue2>gcc -v
Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
Configured with: /usr/build/package/orig/test.respin/gcc-3.4.4-3/configure
--ver
bose --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib
--libe
xecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info
--enable-langu
ages=c,ada,c++,d,f77,pascal,java,objc --enable-nls --without-included-gettext
--
enable-version-specific-runtime-libs --without-x --enable-libgcj
--disable-java-
awt --with-system-zlib --enable-interpreter --disable-libgcj-debug
--enable-thre
ads=posix --enable-java-gc=boehm --disable-win32-registry
--enable-sjlj-exceptio
ns --enable-hash-synchronization --enable-libstdcxx-debug
Thread model: posix
gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
D:\compiler\test_gcc_issue2>gcc fail.c
fail.c:3:10: invalid suffix "+0x0C" on integer constant
D:\compiler\test_gcc_issue2>gcc pass.c
D:\compiler\test_gcc_issue2>