April 14, 2023

On Thursday, 13 April 2023 at 14:29:56 UTC, Andrej Mitrovic wrote:

>

On Thursday, 13 April 2023 at 14:27:33 UTC, Andrej Mitrovic wrote:

>

[...]

$ 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)`

I'll submit to bugzilla.

Try with this fix: https://github.com/dlang/dmd/pull/15106

Note that you should use the dub package by simply using ./lexer , ./parser etc. That way all the dependencies are being taken care of.

April 14, 2023

On Friday, 14 April 2023 at 10:58:55 UTC, RazvanN wrote:

>

Try with this fix: https://github.com/dlang/dmd/pull/15106

Thanks for the quick fix!

April 14, 2023

On Friday, 14 April 2023 at 12:18:04 UTC, Andrej Mitrovic wrote:

>

On Friday, 14 April 2023 at 10:58:55 UTC, RazvanN wrote:

>

Try with this fix: https://github.com/dlang/dmd/pull/15106

Thanks for the quick fix!

You're welcome! Also, note that those test are not run for some reason. If you want to see up to date examples check the compiler/test/unit directory. Those tests are ran by the compiler test suite, therefore they should always be correct.

1 2
Next ›   Last »