Bug 13609 – better error message for missing '}'

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-10-13T10:12:00Z
Last change time
2015-02-18T03:38:25Z
Keywords
pull
Assigned to
nobody
Creator
ketmar

Comments

Comment #0 by ketmar — 2014-10-13T10:12:24Z
missing '}' can produce higly cryptic error messages like this: "z.d(1137): Error: } expected following member declarations in aggregate". ok, i know that i missed '}' somewhere, but can't compiler tell me on what line that "aggregate" starts? please…
Comment #1 by ketmar — 2014-10-13T10:15:13Z
btw: this time it was at line 90. with proper error message bug can be found in seconds, without tedious scanning from the line 1137. yes, i added alot of code all over the file and accidentally missed that '}' in class constructor.
Comment #2 by k.hara.pg — 2014-10-13T12:11:06Z
Comment #3 by ketmar — 2014-10-13T12:31:40Z
(In reply to Kenji Hara from comment #2) > https://github.com/D-Programming-Language/dmd/pull/4065 yay! you're marvelous! ;-)
Comment #4 by github-bugzilla — 2014-10-13T14:36:55Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/164821c182de5190bb0a50642e806fb3ba956f2c fix Issue 13609 - better error message for missing '}' https://github.com/D-Programming-Language/dmd/commit/20f6862d4e9f76dcd93fcbc223d9c46bacfcd665 Merge pull request #4065 from 9rnsr/fix13609 Issue 13609 - better error message for missing '}'
Comment #5 by github-bugzilla — 2015-02-18T03:38:25Z