public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/3020: using operator-> within the class that defines it
@ 2001-06-01 3:36 Artem Khodush
0 siblings, 0 replies; 2+ messages in thread
From: Artem Khodush @ 2001-06-01 3:36 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/3020; it has been noted by GNATS.
From: "Artem Khodush" <artem@duma.gov.ru>
To: <mps@sonartech.com.au>
Cc: <gcc-gnats@gcc.gnu.org>, <gcc-bugs@gcc.gnu.org>
Subject: Re: c++/3020: using operator-> within the class that defines it
Date: Fri, 1 Jun 2001 14:23:10 +0400
> When operator->() is defined within a class B,
> gcc does not apply it to expressions of the form
> "this->x" from within class B (although it has
> no trouble when the expression is spelled out as
> "this->operator()->x").
Not a bug.
operator->() applies only to objects of the class, not to
pointers to objects. You should write (*this)->x.
^ permalink raw reply [flat|nested] 2+ messages in thread
* c++/3020: using operator-> within the class that defines it
@ 2001-05-31 21:16 mps
0 siblings, 0 replies; 2+ messages in thread
From: mps @ 2001-05-31 21:16 UTC (permalink / raw)
To: gcc-gnats
>Number: 3020
>Category: c++
>Synopsis: using operator-> within the class that defines it
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Thu May 31 21:16:05 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Michael Shepanski
>Release: gcc version 2.95.2 19991024 (release)
>Organization:
>Environment:
Linux/Pentium
>Description:
When operator->() is defined within a class B,
gcc does not apply it to expressions of the form
"this->x" from within class B (although it has
no trouble when the expression is spelled out as
"this->operator()->x").
>How-To-Repeat:
$ gcc tmp.cpp
>Fix:
please
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-06-01 3:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-01 3:36 c++/3020: using operator-> within the class that defines it Artem Khodush
-- strict thread matches above, loose matches on Subject: below --
2001-05-31 21:16 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).