[Issue 2469] ICE(cod1.c) arbitrary struct accepted as struct initializer

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Aug 7 01:28:59 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2469





--- Comment #6 from Don <clugdbug at yahoo.com.au>  2009-08-07 01:28:58 PDT ---
There are two completely different bugs in this report. One is the implicit
conversion one, which is a bad code generation bug.

The ICE is actually a quite different bug. Here's a test case which doesn't
involve the initialisation bug.

struct Small { uint x; }
struct Large { uint x, y, z; }
Small foo() { return Small(); }
void main() { 
  Large l; Small s; 
  l = cast(Large)foo();
}

-- 
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