public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/4100: g++ 3.0.1 compiles illegal c++ code
@ 2001-08-23 10:56 bachir.ghoubali
  0 siblings, 0 replies; only message in thread
From: bachir.ghoubali @ 2001-08-23 10:56 UTC (permalink / raw)
  To: gcc-gnats

>Number:         4100
>Category:       c++
>Synopsis:       g++ 3.0.1 compiles illegal c++ code
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          accepts-illegal
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 23 10:56:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Bachir GHOUBALI
>Release:        3.0.1
>Organization:
>Environment:
Solaris 7, G++ 3.0.1
>Description:
Following code is illegal because friend cannot not
be used in type definition. G++ compiles without
complaining.

class A {
public:
  friend class B {
  };
};

int main() { A a; }
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-08-23 10:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-23 10:56 c++/4100: g++ 3.0.1 compiles illegal c++ code bachir.ghoubali

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