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; 4+ 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] 4+ messages in thread

* [Bug c++/19200] Friend declaration misinterpreted as constructor
  2004-12-30 11:53 [Bug c++/19200] New: Friend declaration misinterpreted as constructor giovannibajo at libero dot it
@ 2004-12-30 11:54 ` 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
  2 siblings, 0 replies; 4+ messages in thread
From: giovannibajo at libero dot it @ 2004-12-30 11:54 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |4.0.0 3.4.2 3.3.3


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


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

* [Bug c++/19200] Friend declaration misinterpreted as constructor
  2004-12-30 11:53 [Bug c++/19200] New: Friend declaration misinterpreted as constructor 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
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-30 14:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-30 14:33 -------
If this is a regression, it has to be from 2.95.3 which I don't have access to right now.

Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
      Known to fail|4.0.0 3.4.2 3.3.3           |4.0.0 3.4.2 3.3.3 3.0 2.97
   Last reconfirmed|0000-00-00 00:00:00         |2004-12-30 14:33:16
               date|                            |


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


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

* [Bug c++/19200] Friend declaration misinterpreted as constructor
  2004-12-30 11:53 [Bug c++/19200] New: Friend declaration misinterpreted as constructor 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
  2 siblings, 0 replies; 4+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-01-18 20:17 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-01-18 20:17 -------
Not a regression.
\x13

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
           Keywords|                            |monitored


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


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

end of thread, other threads:[~2005-01-18 20:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-30 11:53 [Bug c++/19200] New: Friend declaration misinterpreted as constructor 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).