[Bug c++/58263] [feature request] friend class $UndefinedClass

2013-08-28 Thread vova7890 at mail dot ru
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

[Bug c++/58263] [feature request] friend class $UndefinedClass

2013-08-28 Thread vova7890 at mail dot ru
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

[Bug c++/58263] [feature request] friend class $UndefinedClass

2013-08-28 Thread pinskia at gcc dot gnu.org
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?

[Bug c++/58263] [feature request] friend class $UndefinedClass

2013-08-28 Thread redi at gcc dot gnu.org
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.

[Bug c++/58263] [feature request] friend class $UndefinedClass

2013-08-28 Thread vova7890 at mail dot ru
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

[Bug c++/58263] [feature request] friend class $UndefinedClass

2013-08-28 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58263 Jonathan Wakely changed: What|Removed |Added Severity|trivial |enhancement --- Comment #1 from Jonatha