D-Programming-GDC/GDC — pull request #49 by jpf91 (2013-02-11 18:20:10+00:00)
Title: Implement getVThis for nested structs

Here's the test case (also fails on 4.8): https://gist.github.com/jpf91/4756262

This example is kinda weird. Although getVthis is called it seems that there's no way the empty function can access variables of the RedBlackTree class. At least trying to access variables in the class is always refused by the frontend:
https://gist.github.com/jpf91/4756308
https://gist.github.com/jpf91/4756326

So I'm really not sure why getVthis is called. But the std.container unit tests manage to trigger this error and it's fixed by this pull request. AFAICS there should be no problem if we just implement this the same way it's already done for classes.