Who here actually uses D?

Robert Clipsham robert at octarineparrot.com
Sat Jan 1 16:33:10 PST 2011


On 02/01/11 00:29, Adam D. Ruppe wrote:
> Son of a bitch!
>
> $ dmd html.d dom.d
> /usr/bin32/dmd: line 3: 32183 Segmentation fault      /lib/ld-linux.so.2
> /home/me/d/dmd2/linux/bin/dmd $*
>
>
> Ironically that I'd hit my first dmd segfault for quite a while
> shortly after making a post saying these things are quite rare.
>
> The line at fault:
>     vars[name] = source;
>
> context:
> Variant[string] vars;
> string name, source;
>
> Workaround:
>      Variant v = source;
>      vars[name] = v;
>
>
> A trivially easy workaround, but the timing is deliciously ironic.

Ah sweet irony! Maybe I'm just a bad omen! Don't suppose you've got a 
test case which will reproduce this? It'd be good to report it so it 
doesn't get lost.

-- 
Robert
http://octarineparrot.com/


More information about the Digitalmars-d mailing list