[Issue 9904] typeof(null) can be casted to aggregate type if .sizeof equals size of pointer

2013-06-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9904 Kenji Hara changed: What|Removed |Added Keywords||pull Status|NEW

[Issue 9904] typeof(null) can be casted to aggregate type if .sizeof equals size of pointer

2013-06-07 Thread d-bugmail
/d859a617045bdf04b39edf14bb782faff642141a fix issue 9904 - typeof(null) can be casted to aggregate type if .sizeof equals size of pointer https://github.com/D-Programming-Language/dmd/commit/3c5eb896fb87b788dd0cb7631fbdf8c5cf77d9f2 Merge pull request #2148 from hpohl/9904 fix issue 9904 - typeof(null) can be casted to aggregate type if

[Issue 9904] typeof(null) can be casted to aggregate type if .sizeof equals size of pointer

2013-04-08 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9904 --- Comment #3 from Andrej Mitrovic 2013-04-08 10:31:56 PDT --- (In reply to comment #2) > (In reply to comment #1) > > > Those should really use size_t to reproduce on all systems: > > > > > struct S1 > > > { > > > size_t x; > > > } > >

[Issue 9904] typeof(null) can be casted to aggregate type if .sizeof equals size of pointer

2013-04-08 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9904 bearophile_h...@eml.cc changed: What|Removed |Added CC||bearophile_h...@eml.cc --- Com

[Issue 9904] typeof(null) can be casted to aggregate type if .sizeof equals size of pointer

2013-04-08 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9904 --- Comment #1 from Andrej Mitrovic 2013-04-08 07:47:34 PDT --- (In reply to comment #0) > struct S1 > { > int x; > } > > struct S2 > { > int x; > byte b; > } Those should really use size_t to reproduce on all systems: > struct