http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58263
--- Comment #6 from vova7890 <vova7890 at mail dot ru> --- (In reply to Andrew Pinski from comment #4) > 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? Good idea. Can lookup for class name in visible fields, and also in curent source, including fields after friend-contained class.