Minor Bug

Bug Detector noemail at dlang.org
Sat Jan 11 14:41:54 PST 2014


Since I do not have a "The D Programming Language Issue Tracking
System account" I hope it is acceptable to report a minor issue
here. Thank all of you for your great work!

// begin bug.d

struct foo(int bar)
{
     static const int bar = bar;  // Thou shalt not write shit.
}

void main()
{
     alias foo!(0) foo_t;
}

// end bug.d

$ dmd bug.d
Segmentation fault (core dumped)
$ dmd
DMD64 D Compiler v2.064

$ gdc bug.d
gdc: internal compiler error: Segmentation fault (program cc1d)
$ gdc --version
gdc (GCC) 4.8.2 20130725 (prerelease)

Platform: GNU/Linux x86_64


More information about the Digitalmars-d mailing list