[Issue 1140] ICE(cod1.c) casting last function parameter to struct.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue May 19 00:27:42 PDT 2009


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


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|ICE(cod1.c) casting tuple   |ICE(cod1.c) casting last
                   |member to tuple struct      |function parameter to
                   |                            |struct.




--- Comment #3 from Don <clugdbug at yahoo.com.au>  2009-05-19 00:27:41 PDT ---
Simpler test case shows that it's nothing to do with tuples!
ICE on both D1 and D2.

struct Dog {
  int q;
  int r;
}
Dog hound(int y) {
    return *cast(Dog*)(&y);
}

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