public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/19200] New: Friend declaration misinterpreted as constructor
@ 2004-12-30 11:53 giovannibajo at libero dot it
  2004-12-30 11:54 ` [Bug c++/19200] " giovannibajo at libero dot it
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: giovannibajo at libero dot it @ 2004-12-30 11:53 UTC (permalink / raw)
  To: gcc-bugs

Hello:

-------------------------------
struct S {
   struct T{};
   friend void S(T);
};
-------------------------------
lookup.cc:3: error: return type specification for constructor invalid
lookup.cc:3: warning: member functions are implicitly friends of their class


G++ thinks that the friend declaration is declaring the constructor (with an 
invalid return type specification) as friend. This is bogus of course.

It might be a regression, but it was there at least in 3.3.

-- 
           Summary: Friend declaration misinterpreted as constructor
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: giovannibajo at libero dot it
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2014-06-12  1:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-19200-4@http.gcc.gnu.org/bugzilla/>
2014-06-09 21:30 ` [Bug c++/19200] Friend declaration misinterpreted as constructor paolo.carlini at oracle dot com
2014-06-11 15:17 ` paolo at gcc dot gnu.org
2014-06-11 16:28 ` paolo.carlini at oracle dot com
2014-06-12  1:30 ` paolo at gcc dot gnu.org
2004-12-30 11:53 [Bug c++/19200] New: " giovannibajo at libero dot it
2004-12-30 11:54 ` [Bug c++/19200] " giovannibajo at libero dot it
2004-12-30 14:33 ` pinskia at gcc dot gnu dot org
2005-01-18 20:17 ` reichelt at gcc dot gnu dot org

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).