https://issues.dlang.org/show_bug.cgi?id=12486
--- Comment #5 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/0a6d7c437d6ab1a919e35d383516ab3dc6f2bb49 Add test from bug #12486 https://github.com/dlang/dmd/commit/3cf5d36578ff612654fddb8f0bb679257e5e4f3f Merge pull request #8013 from FeepingCreature/fix/12486-dont-discard-expression-on-enum-access fix Issue 12486 - Function returning struct isn't called if `enum` of its result is accessed merged-on-behalf-of: Iain Buclaw <ibuc...@gdcproject.org> --