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

mps@sonartech.com.au mps@sonartech.com.au
Thu May 31 21:16:00 GMT 2001


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



More information about the Gcc-bugs mailing list