public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* legal C++ ?
@ 2004-10-06 20:19 Steve Ellcey
  2004-10-06 22:59 ` Giovanni Bajo
  0 siblings, 1 reply; 2+ messages in thread
From: Steve Ellcey @ 2004-10-06 20:19 UTC (permalink / raw)
  To: gcc


The following program compiles with the latest g++ but not with a couple
of other C++ compilers I tried.  It seems like g++ should not be accepting
this, is this a bug?  Should I submit a bug report against g++?

class A {
public:
     void l();
     friend class C;
};
class B : protected A {
};
class C {
     void v(B * g) { g->l(); }
};

Steve Ellcey
sje@cup.hp.com

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

* Re: legal C++ ?
  2004-10-06 20:19 legal C++ ? Steve Ellcey
@ 2004-10-06 22:59 ` Giovanni Bajo
  0 siblings, 0 replies; 2+ messages in thread
From: Giovanni Bajo @ 2004-10-06 22:59 UTC (permalink / raw)
  To: sje; +Cc: gcc

Steve Ellcey wrote:

> The following program compiles with the latest g++ but not with a
> couple of other C++ compilers I tried.  It seems like g++ should not
> be accepting this, is this a bug?  

Looks like a bug to me.

> Should I submit a bug report
> against g++? 

Go ahead.

Thanks
Giovanni Bajo


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

end of thread, other threads:[~2004-10-06 22:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-06 20:19 legal C++ ? Steve Ellcey
2004-10-06 22:59 ` Giovanni Bajo

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