[Issue 24559] Compiler fails to error about using enum type as a value when compiling with -o-
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu May 23 18:30:26 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=24559
Luís Ferreira <contact at lsferreira.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |contact at lsferreira.net
--- Comment #1 from Luís Ferreira <contact at 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.
--
More information about the Digitalmars-d-bugs
mailing list