public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/58263] New: [feature request] friend class $UndefinedClass
@ 2013-08-28 14:45 vova7890 at mail dot ru
  2013-08-28 14:51 ` [Bug c++/58263] " redi at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: vova7890 at mail dot ru @ 2013-08-28 14:45 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58263

            Bug ID: 58263
           Summary: [feature request] friend class $UndefinedClass
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: trivial
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vova7890 at mail dot ru

Idea is in:

class MyClass1
{
   friend class MyClas2; // trivial stupid human issue with MyClas2 -> MyClass2
private:
   void help();
};


class MyClass2
{
public:
   void need(MyClass1 *cl) {
      cl->help();   // error: is private!!
   }
};


Maybe need to check, have we declaration or not. If not - got a warning about
missing declaration.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-08-28 18:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-28 14:45 [Bug c++/58263] New: [feature request] friend class $UndefinedClass vova7890 at mail dot ru
2013-08-28 14:51 ` [Bug c++/58263] " redi at gcc dot gnu.org
2013-08-28 16:32 ` vova7890 at mail dot ru
2013-08-28 17:29 ` redi at gcc dot gnu.org
2013-08-28 17:42 ` pinskia at gcc dot gnu.org
2013-08-28 18:01 ` vova7890 at mail dot ru
2013-08-28 18:15 ` vova7890 at mail dot ru

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).