[Issue 19070] New: Invalid octal literals `01` through `07` allowed
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jul 8 13:06:25 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=19070
Issue ID: 19070
Summary: Invalid octal literals `01` through `07` allowed
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: trivial
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: kubo39 at gmail.com
I found these pathlogical examples pass the lexer:
---
void main()
{
assert(01 == 1); // can compile and run.
assert(010 == 8); // Error: octal literals 010 are no longer supported,
use std.conv.octal!10 instead
}
---
--
More information about the Digitalmars-d-bugs
mailing list