[Issue 2560] ICE(cod4.c) on invoking method that takes ref const struct parameter

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Aug 31 02:52:16 PDT 2009


--- Comment #8 from Don <clugdbug at yahoo.com.au>  2009-08-31 02:52:15 PDT ---
(In reply to comment #7)
> (In reply to comment #5)
> > *** Issue 2847 has been marked as a duplicate of this issue. ***
> However I agree these issues are duplicate of this, don't forget specialty of
> real.
> In Issue 2847, only real causes ICE, besides float and double do not.
> Both const(struct) and const(real) may be behind assertion failure at cod4.c
> 35#.
> Bugs about real have harmful effects on numeric computing, so that this point
> must be important for you.

The reason why it doesn't fail for float and double is that they have sizes of
4=int.sizeof and 8=long.sizeof, and get inlined at an earlier stage in the
backend. So structs with size 1,2,4, and 8 are immune from the ICE. Real is
size 10, so it ICEs. It's nothing to do with floating point at all.

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