[Issue 18136] ICE in dmd/statement.d(426)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Mar 15 22:05:34 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18136
greenify <greeenify at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |greeenify at gmail.com
--- Comment #1 from greenify <greeenify at gmail.com> ---
>From Slack by @LemonBoy
> @wilzbach, 18136 is easy to fix, you just need to check out `visit(FuncDeclaration funcdecl)' in semantic3.d where it calls f.checkRetType. It seems you must call something that increases `global.errors` first such as `error()` before you're able to construct an ErrorStatement instance.
At the moment this triggers a different error in Phobos, so it would require a
bit of work to reproduce it again as the underlying phobos code apparently
changed.
https://run.dlang.io/is/w3u6Oz
--
More information about the Digitalmars-d-bugs
mailing list