fix Issue 7645 - ICE(e2ir.c) nested classes