Bug 23838 – DMD lexer / parser examples might not compile

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2023-04-13T14:32:37Z
Last change time
2023-04-17T12:57:38Z
Keywords
pull
Assigned to
No Owner
Creator
Andrej Mitrovic

Comments

Comment #0 by andrej.mitrovich — 2023-04-13T14:32:37Z
For example this one: https://github.com/dlang/dmd/blob/master/compiler/test/dub_package/lexer.d ----- $ mv lexer.d app.d $ dmd -I/c/dev/dmd/compiler/src/ app.d app.d(17): Error: none of the overloads of `this` are callable using argument types `(string, immutable(char)*, int, ulong, int, int)` /c/dev/dmd/compiler/src/dmd/lexer.d(111): Candidates are: `dmd.lexer.Lexer.this(const(char)* filename, const(char)* base, ulong begoffset, ulong endoffset, bool doDocComment, bool commentToken, ErrorSink errorSink, const(char)[] vendor = "DLF", uint versionNumber = 1u)` /c/dev/dmd/compiler/src/dmd/lexer.d(170): `dmd.lexer.Lexer.this(const(char)* filename, const(char)* base, ulong begoffset, ulong endoffset, bool doDocComment, bool commentToken, bool whitespaceToken, ErrorSink errorSink)` /c/dev/dmd/compiler/src/dmd/lexer.d(182): `dmd.lexer.Lexer.this(ErrorSink errorSink)` ----- Tried with DMD sources from the last release and also from `master`.
Comment #1 by dlang-bot — 2023-04-14T10:58:07Z
@RazvanN7 created dlang/dmd pull request #15106 "Fix Issue 23838 - DMD lexer / parser examples might not compile" fixing this issue: - Fix Issue 23838 - DMD lexer / parser examples might not compile https://github.com/dlang/dmd/pull/15106
Comment #2 by dlang-bot — 2023-04-17T12:57:38Z
dlang/dmd pull request #15106 "Fix Issue 23838 - DMD lexer / parser examples might not compile" was merged into master: - cbff325f18c956898da97f51d79090b675fa622c by RazvanN7: Fix Issue 23838 - DMD lexer / parser examples might not compile https://github.com/dlang/dmd/pull/15106