April 13, 2023 [Issue 23838] New: DMD lexer / parser examples might not compile | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23838 Issue ID: 23838 Summary: DMD lexer / parser examples might not compile Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: andrej.mitrovich@gmail.com 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`. -- |
Copyright © 1999-2021 by the D Language Foundation