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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Apr 8 10:01:37 PDT 2013


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


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs at eml.cc


--- Comment #2 from bearophile_hugs at eml.cc 2013-04-08 10:01:36 PDT ---
(In reply to comment #1)

> Those should really use size_t to reproduce on all systems:
> 
> > struct S1
> > {
> >     size_t x;
> > }
> > 
> > struct S2
> > {
> >     size_t x;
> >     byte b;
> > }

Why is that cast a problem/bug? Maybe there is no compiler bug here.

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