This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c++/3020: using operator-> within the class that defines it



>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]