[Issue 23410] New: ImportC: binary constants not allowed
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Oct 13 20:02:35 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=23410
Issue ID: 23410
Summary: ImportC: binary constants not allowed
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Keywords: ImportC
Severity: enhancement
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: dave287091 at gmail.com
Binary literals like “0b101” in C files fail with the error "Error: binary
constants not allowed”. These should be allowed in C files as it was
standardized for C23, and is supported as an extension already by clang, gcc,
tcc and probably others.
Working draft for C23 can be seen here:
https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3054.pdf
--
More information about the Digitalmars-d-bugs
mailing list