http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58263
--- Comment #6 from vova7890 ---
(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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58263
--- Comment #5 from vova7890 ---
(In reply to Jonathan Wakely from comment #3)
> But that will warn about valid code, where you didn't spell the name wrong.
Yes, but it can be not in one file, as in example. If it in one file, and
friend class is
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58263
--- Comment #4 from Andrew Pinski ---
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?
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58263
--- Comment #3 from Jonathan Wakely ---
But that will warn about valid code, where you didn't spell the name wrong.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58263
--- Comment #2 from vova7890 ---
(In reply to Jonathan Wakely from comment #1)
> Do we warn in A.cc that B is not defined? It is defined in another header,
> but that isn't included by A.cc because it isn't needed.
We warn about implicit friend
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58263
Jonathan Wakely changed:
What|Removed |Added
Severity|trivial |enhancement
--- Comment #1 from Jonatha