www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Minor Bug

reply "Bug Detector" <noemail dlang.org> writes:
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
Jan 11 2014
next sibling parent "Brad Anderson" <eco gnuk.net> writes:
On Saturday, 11 January 2014 at 22:41:55 UTC, Bug Detector wrote:
 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
On dmd git HEAD this no longer crashes and instead outputs these errors: /d28/f520.d(5): Error: variable bar cannot be read at compile time /d28/f520.d(10): Error: template instance f520.foo!(0) error instantiating
Jan 11 2014
prev sibling parent "chrisrow" <chrisrow hushmail.com> writes:
The hidden camera detector which can be got from
http://www.detectorall.com/categories/Radio-Frequency-Detector/
can be called vehicle inspection which have a good function of
detecting metals and even some potential danger signals. They can
bring much safety and convenience to people's life. We have to
admit that the advanced technology always gives us surprise and
joy.
Feb 23 2014