http://bugzilla.gdcproject.org/show_bug.cgi?id=242
--- Comment #2 from Iain Buclaw <ibuc...@gdcproject.org> --- There is a second consideration. --- struct Thing { enum Instance = Thing(); int a = 42; void iter() { this.a = 24; } } auto test() { return Thing.Instance.iter; } --- This should not try to overwrite read-only data. If taking the address of a CONST_DECL, it should either be that DECL_INITIAL is used directly, or internally rewrite the decl as a normal VAR_DECL. -- You are receiving this mail because: You are watching all bug changes.