www.digitalmars.com         C & C++   DMDScript  

D - GPF in Compiler Beta v0.69

import stream;

class Token {
 this( int t, char[] v ) { }
 this( int t, char   v ) { }
}

class MyStream {
 Stream src;

 this( Stream src0 ) { }

 protected Token read_next() {
  try {
   char b;
   src.read( c );
   return new Token( 0, c );
  } catch (Exception err ) {
   return null;
  }
 }
}

//
// The instruction as "0x00409a95 referenced memory at "0x00000004". the
memory could not be "read".
// due to coding error `b` not `c` at line 16 (line 17 should say no varable
`c`)
//
Aug 13 2003