Bug 12623 – Special lexing case not mentioned in language spec

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-04-23T06:22:00Z
Last change time
2014-04-25T09:57:19Z
Keywords
pull, spec
Assigned to
nobody
Creator
briancschott
Blocks
10233

Comments

Comment #0 by briancschott — 2014-04-23T06:22:04Z
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.
Comment #1 by bearophile_hugs — 2014-04-23T07:50:55Z
Good.
Comment #2 by dlang-bugzilla — 2014-04-25T09:57:19Z