https://issues.dlang.org/show_bug.cgi?id=24559
Luís Ferreira <cont...@lsferreira.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |cont...@lsferreira.net --- Comment #1 from Luís Ferreira <cont...@lsferreira.net> --- >From what I investigated, semantics gags the error and defer that to e2ir glue code, hence it doesn't happen on `-o-`. We have two possible options: - We do the check for expressions with EXP.error after semantic3 and remove it from e2ir visitor; - Detect these situations when we encounter them. It seems expressionsem assumes its a forward reference and goes on, which to me, shouldn't. --