D-Programming-Language/dmd — pull request #871 by 9rnsr (2012-04-09 15:45:53+00:00)
Title: Issue 7871 - RangeViolation with findSplitBefore

http://d.puremagic.com/issues/show_bug.cgi?id=7871

This is a regression caused by fixing issue 7583.
When you syntaxCopy() a ast sub-tree, contained lengthVar is discarded.
But it is already inserted to scope symbol table. So we should share lengthVar between all copy of syntax trees instead of creating new one.