http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58263
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- How about looking into the MyClass1 to see if there is a friend class and have a quick heuristic about the spelling mistake when doing the error message?