public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/12050] New: [3.4 regression] typedef'ed name not accepted as friend
@ 2003-08-25 10:35 benko at sztaki dot hu
  2003-08-25 12:16 ` [Bug c++/12050] typedef'ed name " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: benko at sztaki dot hu @ 2003-08-25 10:35 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: [3.4 regression] typedef'ed name not accepted as friend
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: benko at sztaki dot hu
                CC: gcc-bugs at gcc dot gnu dot org

A week ago this code was accepted:

hydra:~/c/proba$ cat friend_typedef.cc
struct a {};

struct b
{
  typedef a t_t;

  friend class t_t;
};
hydra:~/c/proba$ g++-cvs friend_typedef.cc
friend_typedef.cc:7: error: using typedef-name `b::t_t' after `class'
zsh: exit 1     g++-cvs friend_typedef.cc
hydra:~/c/proba$ g++-cvs -v
Reading specs from /gml/shared/gcc-cvs/lib/gcc/i686-pc-linux-gnu/3.4/specs
Configured with: '../gcc/configure' '--prefix=/gml/shared/gcc-cvs
'--enable-languages=c++
Thread model: posix
gcc version 3.4 20030825 (experimental)
hydra:~/c/proba$


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

* [Bug c++/12050] typedef'ed name accepted as friend
  2003-08-25 10:35 [Bug c++/12050] New: [3.4 regression] typedef'ed name not accepted as friend benko at sztaki dot hu
@ 2003-08-25 12:16 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-25 12:16 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE
            Summary|[3.4 regression] typedef'ed |typedef'ed name accepted as
                   |name not accepted as friend |friend


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-08-25 12:16 -------
This code is invalid as per 7.1.5.3/2.
This was accepts-invalid before 3.4, also this is a dup of bug 11036 which was the bug which tract 
this invalid code.

*** This bug has been marked as a duplicate of 11036 ***


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

end of thread, other threads:[~2003-08-25 12:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-25 10:35 [Bug c++/12050] New: [3.4 regression] typedef'ed name not accepted as friend benko at sztaki dot hu
2003-08-25 12:16 ` [Bug c++/12050] typedef'ed name " pinskia 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).