[Issue 8949] [CTFE] Internal Compiler Error
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Nov 5 11:49:40 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8949
--- Comment #1 from Don <clugdbug at yahoo.com.au> 2012-11-05 11:49:39 PST ---
Reduced test case:
struct S { int[int] a; }
void baz(ref int[int] x)
{
auto m = x.dup;
}
int bar()
{
S s;
baz(s.a);
return 1;
}
static assert(bar());
---
Applies to any case where you pass an AA by reference _when it is null_, and
then duplicate it. <sigh> This is the bizarre "magic null" semantics that
happen only with AAs. It causes dozens of special cases.
--
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