/**
 * Bug report for DMD64 D Compiler v2.054 
 * 2011 Danny Arends
 **/
import core.thread;
import std.stdio;

class TestClass : Fiber{
public:
  this(){ super(&run); }
  
  void run(){
    int x= 10;
    int y= 5;
    float mydouble = x+y;
    writeln(mydouble); //This segfaults
    yield();
  }
}

void main(string[] args){
  int x= 10;
  int y= 5;
  float mydouble = x+y;
  writeln(mydouble); //This works

  TestClass testFiber = new TestClass();
  testFiber.call();
  writeln("Done");
}
 