[Bug 242] [ICE] (const_hash_1) varasm.c:2912: Segmentation fault
via D.gnu
d.gnu at puremagic.com
Sun Oct 2 11:53:07 PDT 2016
http://bugzilla.gdcproject.org/show_bug.cgi?id=242
--- Comment #2 from Iain Buclaw <ibuclaw at 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.
More information about the D.gnu
mailing list