Bug 24000 – show the open bracket "{" location for Error: matching `}` expected, not `End of File`

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2023-06-19T21:01:09Z
Last change time
2023-06-26T12:00:41Z
Keywords
pull
Assigned to
No Owner
Creator
mw

Comments

Comment #0 by mingwu — 2023-06-19T21:01:09Z
when there is such error message: ``` Error: matching `}` expected, not `End of File` ``` it's hard to figure out where the problem is, so the compiler should tell where the un-matched beginning "{" token is.
Comment #1 by dlang-bot — 2023-06-20T18:26:21Z
@ntrel created dlang/dmd pull request #15334 "Fix Issue 24000 - show open bracket "{" location for Error: matching …" fixing this issue: - Fix Issue 24000 - show open bracket "{" location for Error: matching `}` expected https://github.com/dlang/dmd/pull/15334
Comment #2 by dlang-bot — 2023-06-26T12:00:41Z
dlang/dmd pull request #15334 "Fix Issue 24000 - show open bracket "{" location for Error: matching …" was merged into master: - 769311e2b7e5bedc77a8ca2d5fe7fd39ab65c7b8 by Nick Treleaven: Fix Issue 24000 - show open bracket "{" location for Error: matching `}` expected https://github.com/dlang/dmd/pull/15334