digitalmars.D.bugs - [Issue 8346] New: Literals 00 - 07 results in odd errors when used with UFCS
- d-bugmail puremagic.com (34/34) Jul 03 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8346
http://d.puremagic.com/issues/show_bug.cgi?id=8346 Summary: Literals 00 - 07 results in odd errors when used with UFCS Product: D Version: unspecified Platform: All OS/Version: All Status: NEW Severity: minor Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: jmdavisProg gmx.com --- Comment #0 from Jonathan M Davis <jmdavisProg gmx.com> 2012-07-03 17:42:11 PDT --- This code import std.stdio; void main() { 01.writeln(); } results in this set of errors: q.d(5): Error: found 'writeln' when expecting ';' following statement q.d(5): Error: expression expected, not ')' q.d(5): Error: found ';' when expecting ')' q.d(6): Error: found '}' when expecting ';' following statement q.d(7): Error: found 'EOF' when expecting '}' following compound statement whereas of it's an illegal numeric literal such as 08.writeln(), you get q.d(5): Error: found '8' when expecting ';' following statement Numeric literals which do not begin with zero do not have this problem. I assume that it relates to how (the now deprecated) octal literals are handled. See also bug# 8345 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 03 2012