Bug 3774 - Reference to Member Function
Reference to Member Function
Status: CLOSED WONTFIX
Product: Red Hat Linux
Classification: Retired
Component: egcs (Show other bugs)
5.2
All Linux
medium Severity medium
: ---
: ---
Assigned To: Preston Brown
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-06-28 03:58 EDT by stephen.morton
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-07-06 10:47:26 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description stephen.morton 1999-06-28 03:58:31 EDT
After the following declarations -
typedef void (class_y::*state_entry_proc) ();
state_entry_proc ref_proc = class_y::public_proc;

- the following code in a "class_y" member function -
void class_y::any_proc () {
   ref_proc ();
};

- gives a compile error (must use ->* or .* to call member
function).
Comment 1 Cristian Gafton 1999-07-02 16:48:59 EDT
Assigned to pbrown. My eyes hurt.
Comment 2 Preston Brown 1999-07-06 10:47:59 EDT
ouch.  So do mine.  This rather convoluted bit of code will certainly
be difficult for the compiler maintainers to fix, but I do suggest you
report it to the egcs team.  Again, a bug of this magnitude is
currently beyond our abilities to repair.  All we can do is wait for
the next compiler release.

Note You need to log in before you can comment on or make changes to this bug.