[Bug bootstrap/66471] New: BITMAP is a reserved keyword on MinGW
ismail at donmez dot ws
gcc-bugzilla@gcc.gnu.org
Tue Jun 9 11:20:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66471
Bug ID: 66471
Summary: BITMAP is a reserved keyword on MinGW
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
Assignee: unassigned at gcc dot gnu.org
Reporter: ismail at donmez dot ws
Target Milestone: ---
gcc/mem-stats-traits.h has:
/* Memory allocation origin. */
enum mem_alloc_origin
{
HASH_TABLE,
HASH_MAP,
HASH_SET,
VEC,
BITMAP,
GGC,
ALLOC_POOL,
MEM_ALLOC_ORIGIN_LENGTH
};
and this fails to compile on mingw-w64 with:
In file included from
/usr/x86_64-w64-mingw32/sys-root/mingw/include/windows.h:71:0,
from ../../combined-6.0.0/gcc/config/i386/host-mingw32.c:29:
/usr/x86_64-w64-mingw32/sys-root/mingw/include/wingdi.h:467:5: error: 'typedef
struct tagBITMAP BITMAP' redeclared as different kind of symbol
} BITMAP,*PBITMAP,*NPBITMAP,*LPBITMAP;
^
In file included from ../../combined-6.0.0/gcc/hash-table.h:204:0,
from ../../combined-6.0.0/gcc/coretypes.h:310,
from ../../combined-6.0.0/gcc/config/i386/host-mingw32.c:22:
../../combined-6.0.0/gcc/mem-stats-traits.h:11:3: note: previous declaration
'mem_alloc_origin BITMAP'
BITMAP,
^
In file included from
/usr/x86_64-w64-mingw32/sys-root/mingw/include/windows.h:71:0,
from ../../combined-6.0.0/gcc/config/i386/host-mingw32.c:29:
/usr/x86_64-w64-mingw32/sys-root/mingw/include/wingdi.h:2688:55: error:
'BITMAP' does not name a type
WINGDIAPI HBITMAP WINAPI CreateBitmapIndirect(CONST BITMAP *pbm);
^
In file included from
/usr/x86_64-w64-mingw32/sys-root/mingw/include/windows.h:71:0,
from ../../combined-6.0.0/gcc/config/i386/host-mingw32.c:29:
/usr/x86_64-w64-mingw32/sys-root/mingw/include/wingdi.h:3218:5: error: 'BITMAP'
does not name a type
BITMAP dsBm;
^
../../combined-6.0.0/gcc/config/i386/x-mingw32:30: recipe for target
'host-mingw32.o' failed
Renaming "BITMAP" enum should ne enough.
More information about the Gcc-bugs
mailing list