[Issue 10810] wrong forward reference error when using return type deduction and a cyclic call flow

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Jul 2 06:08:31 PDT 2017


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

--- Comment #5 from Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> ---
(In reply to timon.gehr from comment #3)
> Currently, this is quite conservative. Analysis of any function is suspended
> if a function call with unresolved return type is encountered, until this
> return type has been resolved.

Short-circuiting return type analysis to "void" if there are no return
statements in the body seems like a reasonable way to solve this particular
case to me.

--


More information about the Digitalmars-d-bugs mailing list