For the lulz: ddmd vs libdparse lexer timings

Iain Buclaw via Digitalmars-d digitalmars-d at puremagic.com
Wed Jan 7 04:52:28 PST 2015


On 7 January 2015 at 12:35, Daniel Murphy via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
> "Iain Buclaw via Digitalmars-d"  wrote in message
> news:mailman.4248.1420631820.9932.digitalmars-d at 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.


More information about the Digitalmars-d mailing list