Scope pointer bug

Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2571

Reported by Martin Stjernholm mast@roxen.com

The following program produces a segmentation fault:

    int main()
    {
      int var;
      void x() {var++;};
      lambda () {x();}();
    }

Cursory investigation indicates that it's some problem with the scope pointers. It works in 7.2.