Fixes Issue 8742 - ICE on anon class derived from nested class.
Merge pull request #1466 from AndrejMitrovic/Fix8742

Issue 8742 - ICE on anon class derived from nested class.