[Issue 14353] SDC test0104.d fails under DMD
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Mar 29 02:10:42 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14353
Kenji Hara <k.hara.pg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #6 from Kenji Hara <k.hara.pg at gmail.com> ---
(In reply to ag0aep6g from comment #1)
> I think this is invalid. `t.add` and `s.add` are parentheses-less calls. So
> the error about T.add not being callable "using argument types ()" is
> correct. To get a delegate, add '&':
That's right. When a function symbol identifier without address operator
appears in expressions, it will be evaluated to a parenthesis-less function
call.
Therefore, it's definitely a bug in SDC.
--
More information about the Digitalmars-d-bugs
mailing list