www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - compiler crash

reply David Medlock <noone nowhere.com> writes:
class Foo
{
   char[][int]   lookup;
   this() { lookup.length = 100; }
}

---------- Capture Output ----------
 "C:\dmd\bin\dmd.exe" -debug -c "E:\proj\d\test\sample.d"
E:\proj\d\test\sample.d(7): this.lookup.length is not an lvalue
 Terminated with exit code -1073741819.
Windows XP Pro. -DavidM
Aug 31 2005
parent reply Derek Parnell <derek psych.ward> writes:
On Wed, 31 Aug 2005 09:27:45 -0400, David Medlock wrote:

 class Foo
 {
    char[][int]   lookup;
    this() { lookup.length = 100; }
 }
 
 ---------- Capture Output ----------
  > "C:\dmd\bin\dmd.exe" -debug -c "E:\proj\d\test\sample.d"
 E:\proj\d\test\sample.d(7): this.lookup.length is not an lvalue
  > Terminated with exit code -1073741819.
 
 Windows XP Pro.
On my Windows XP Pro it didn't crash the compiler. I got the error message but the compiler didn't crash. Using DMD v0.129 f:\temp>dmd -c -debug test.d test.d(4): this.lookup.length is not an lvalue f:\temp> As I got the message on line 4 and you on line 7, I guess there other code in your test that you haven't shown us. -- Derek Parnell Melbourne, Australia 31/08/2005 11:34:10 PM
Aug 31 2005
parent David Medlock <noone nowhere.com> writes:
Derek Parnell wrote:
 On Wed, 31 Aug 2005 09:27:45 -0400, David Medlock wrote:
 
 
class Foo
{
   char[][int]   lookup;
   this() { lookup.length = 100; }
}

---------- Capture Output ----------
 "C:\dmd\bin\dmd.exe" -debug -c "E:\proj\d\test\sample.d"
E:\proj\d\test\sample.d(7): this.lookup.length is not an lvalue
 Terminated with exit code -1073741819.
Windows XP Pro.
On my Windows XP Pro it didn't crash the compiler. I got the error message but the compiler didn't crash. Using DMD v0.129 f:\temp>dmd -c -debug test.d test.d(4): this.lookup.length is not an lvalue f:\temp>
Yes, I see now my work machine still has DMD 0.128 on it!
 
 
 As I got the message on line 4 and you on line 7, I guess there other code
 in your test that you haven't shown us.
 
Just whitespace. -DavidM
Aug 31 2005