[Issue 12650] GIT HEAD : Invalid codegen

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Apr 26 04:12:45 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=12650

--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> ---
(In reply to Temtaime from comment #0)
> 2.065 output : 2

I think this is git-head only regression. Because the OP code cannot compile
with 2.065:

$ dmd -run test
test.d(10): Error: function test.foo (ref const(S) s) is not callable using
argument types (S)
test.d(16): Error: template instance test.A.__ctor!() error instantiating

(Assignment expression is changed to lvalue in git-head, by fixing issue 12211)

--


More information about the Digitalmars-d-bugs mailing list