October 10, 2019 [Issue 3251] DecimalFloat literal cannot begin with "08" or "09" | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=3251 RazvanN <razvan.nitu1305@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |razvan.nitu1305@gmail.com Resolution|--- |FIXED --- Comment #1 from RazvanN <razvan.nitu1305@gmail.com> --- Currently, when dmd sees a 0 it starts parsing an octal. If it finds any digit > 7 it errors. However, if it finds a point, it immediately switches to parsing a floating point literal, thus accepting from this point digits larger than 7: 07341 => octal 07238 => error 024.8 => foating point literal I think this is fine. -- |
Copyright © 1999-2021 by the D Language Foundation