https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58972 --- Comment #7 from Daniel Krügler <daniel.kruegler at googlemail dot com> --- (In reply to Ville Voutilainen from comment #6) Makes sense to me, I'll do that for the local-class example