D-Programming-Language/dmd — pull request #1557 by AndrejMitrovic (2013-01-26 21:45:56+00:00)
Title: Issue 8717 - Private and Protected should be accessible from within the same module.

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

`static if` and `static assert` didn't have access of private and protected fields in the same module.

I'm not 100% sure whether this new check is correct.