D Compiler Bug?
Bottled Gin
gin at bottle.com
Wed Feb 6 13:49:44 UTC 2019
> Not just separate compilation, I am facing issues when
> compiling in one go as well. I am trying to reduce such a
> testcase.
>
Alright. I reduced the circular dependency issue when compiling d
files together. To reproduce:
$ git clone https://github.com/dsnippet/deploopbug.git
$ for i in *.d; do ldc2 -c $i; done # compiles without issue
$ ldc2 -c seq.d foo.d frop.d pol.d trump.d bar.d baz.d # no issue
$ ldc2 -c foo.d frop.d pol.d trump.d bar.d baz.d seq.d
frop.d(5): Error: function bool frop.frop.func(foo rhs, bar bee)
does not override any function, did you mean to override bool
foo.foo.func(foo rhs, bar bee)?
DMD also behaves similarly. Compiles without error when d modules
compiled separately. No error when compiling files together in
one order. With another order, the compiler fails.
> Will file bug soon. Just want to make sure that all dimensions
> are covered.
https://issues.dlang.org/show_bug.cgi?id=19655
https://issues.dlang.org/show_bug.cgi?id=19656
https://issues.dlang.org/show_bug.cgi?id=19657
More information about the Digitalmars-d
mailing list