[Issue 12623] New: Special lexing case not mentioned in language spec
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Apr 22 23:22:04 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=12623
Issue ID: 12623
Summary: Special lexing case not mentioned in language spec
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: websites
Assignee: nobody at puremagic.com
Reporter: brian-schott at cox.net
int a(int)
{
return 10;
}
void main() {
auto x = 1.a;
auto a = x.a;
auto b = x. a;
auto y = 1. a;
}
A lexer written according to the language spec will not properly lex the code
in this example because the specification states that the longest possible
match should be used.
--
More information about the Digitalmars-d-bugs
mailing list