fix Issue 7645 - ICE(e2ir.c) nested classes
Merge pull request #2818 from 9rnsr/fix7645

Issue 7645 - ICE(e2ir.c) nested classes