petabricks/petabricks — Issue #3: For scoping broken for non-leaf blocks
Author: jansel
Created: 2011-10-22 03:08:07+00:00
State: open

The following example doesn't compile, but should. Our name mangling is mangling both i's to the same member name and creating conflicting declarations.

```
function Foo
to X
from Y
{
X=Y;
}

function Bar
to X
from Y
{
for(int i=0; i<10; ++i) Foo(X,Y);
for(int i=0; i<10; ++i) Foo(X,Y);
}
```