[Issue 2469] arbitrary struct accepted as struct initializer
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jun 17 23:20:41 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2469
Christian Kamm <kamm-removethis at incasoftware.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-invalid-code
--- Comment #2 from Christian Kamm <kamm-removethis at incasoftware.de> 2009-06-17 23:20:41 PDT ---
Jarett found this pretty ICE in ztc\cod1.c:1673:
This can lead to the ICE mentioned in the description, if the source type is
smaller than the destination, at least for some values of "smaller," *and* the
source is a function call. The following, for instance, causes it:
struct Small { uint x; }
struct Large { uint x, y, z; }
Small foo() { return Small(); }
void main() { Large l = foo(); } // bang!
--
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