[Issue 24173] New: ImportC: unable to parse microsoft extended integer literals
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Oct 4 21:38:15 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=24173
Issue ID: 24173
Summary: ImportC: unable to parse microsoft extended integer
literals
Product: D
Version: D2
Hardware: All
OS: Windows
Status: NEW
Keywords: ImportC
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: dave287091 at gmail.com
Apparently MSVC has syntax for 32bit and 64bit integer literal suffix.
It’s like:
unsigned __int32 s = 0xffffffffui32;
unsigned __int64 s2 = 0xffffffffffffffffui64;
__int32 s3 = 0xffffffffi32;
__int64 s4 = 0xffffffffffffffffi64;
__int64 s5 = 12i64;
__int32 s6 = 07i32;
Encountered this as my copy of <stdint.h> defines SIZE_MAX using these
suffixes.
I can’t find where these suffixes are documented.
--
More information about the Digitalmars-d-bugs
mailing list