www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Crashes DMD - nested class

reply Derek Parnell <derek psych.ward> writes:
I know this is bad syntax, but it shouldn't crash the compiler.


class A
{
 class B
 {
 }
 B b = new B;
}
void main()
{
}

-- 
Derek
Melbourne, Australia
9/06/2005 4:27:09 PM
Jun 08 2005
parent reply zwang <nehzgnaw gmail.com> writes:
Derek Parnell wrote:
 I know this is bad syntax, but it shouldn't crash the compiler.
 
 
 class A
 {
  class B
  {
  }
  B b = new B;
 }
 void main()
 {
 }
 

already reported by Jarrett four hours ago.
Jun 08 2005
parent Derek Parnell <derek psych.ward> writes:
On Thu, 09 Jun 2005 14:53:33 +0800, zwang wrote:

 Derek Parnell wrote:
 I know this is bad syntax, but it shouldn't crash the compiler.
 
 class A
 {
  class B
  {
  }
  B b = new B;
 }
 void main()
 {
 }
 

already reported by Jarrett four hours ago.

LOL...and who says I'm slow. I didn't notice that one at all. -- Derek Melbourne, Australia 9/06/2005 5:02:00 PM
Jun 09 2005