On 7 January 2015 at 12:35, Daniel Murphy via Digitalmars-d <digitalmars-d@puremagic.com> wrote: > "Iain Buclaw via Digitalmars-d" wrote in message > news:mailman.4248.1420631820.9932.digitalmar...@puremagic.com... > >> I'd say bug in dmc. > > > Yeah I'm thinking so, fun. It looks like dmc sets up the code to copy the > struct into the variable but never bothers emitting the loop/movsds. > > What about this: > > struct S > { > } > > void main() > { > S a = void; > S b = void; > assert(a == b); // Should this ever fail? > }
No, that assert should never fail.