Segfault while compiling simple program
Ali Çehreli via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Dec 16 01:38:24 PST 2015
On 12/16/2015 01:26 AM, Saurabh Das wrote:
> struct xlref
> {
> ushort rwFirst;
> ushort rwLast;
> ubyte colFirst;
> ubyte colLast;
> }
>
> struct xlmref
> {
> ushort count;
> xlref reflist;
> }
>
> Mac OS X (dmd 2.069.0)
> ===================
> dmd dprob.d
> Segmentation fault: 11
Compiler bug. Please report at
https://issues.dlang.org/
Changing the order of the members of xlmref seems to be a workaround:
struct xlmref
{
xlref reflist;
ushort count;
}
Ali
More information about the Digitalmars-d-learn
mailing list