public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/3021: Missing attachment from report c++/3020
@ 2001-05-31 21:56 mps
  0 siblings, 0 replies; only message in thread
From: mps @ 2001-05-31 21:56 UTC (permalink / raw)
  To: gcc-gnats

>Number:         3021
>Category:       c++
>Synopsis:       Missing attachment from report c++/3020
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Thu May 31 21:56:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Michael Shepanski
>Release:        gcc version 2.95.2 19991024 (release)
>Organization:
>Environment:
Linux/Pentium
>Description:
Oops -- didn't succeed in attaching the program text to
bug report c++/3020.  Here it is.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="tmp.cpp"
Content-Disposition: inline; filename="tmp.cpp"

#include	<stdio.h>

class A {
public:
	int	x;
};

class B {
public:
	A	*a;
	A	* operator-> () { return a; }
	int f () { return this->operator->()->x; }	// ok
	int g () { return this->x; }				// rejected
};

int
main ()
{
	B	b;
	printf ("%d", b -> x);						// ok
}


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

only message in thread, other threads:[~2001-05-31 21:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-31 21:56 c++/3021: Missing attachment from report c++/3020 mps

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