[Issue 6799] ICE(type.c) involving AAs and pointers to structs
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Feb 20 09:13:55 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=6799
--- Comment #2 from Benjamin Thaut <code at benjamin-thaut.de> 2012-02-20 09:13:53 PST ---
This only seems to happen when passing a struct to remove by value. If you pass
it by reference everything is fine.
Reduced repro case + workaround:
struct ChunkLoc {}
ChunkLoc Get()
{
return ChunkLoc();
}
int main(string[] args)
{
int[ChunkLoc] aa;
aa.remove(Get());
//workaround
//auto value = Get();
//aa.remove(value);
return 0;
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list