Article View: gnu.g++.bug
Article #85pointer to data members
From: loepere
Date: Sat, 01 Jul 1989 00:10
Date: Sat, 01 Jul 1989 00:10
17 lines
711 bytes
711 bytes
The following worked in 1.34, but not in 1.35 (the compiler claims:
"sorry, not implemented: address of bound pointer-to-member
expression"). Pointers to function members still work. - Keith
class complex
{
public:
float real;
float imag;
};
int main ()
{
float complex::*data_ptr;
data_ptr = &complex::real;
}
Technical Details
Message-ID:
<8907010023.AA14460@uunet.uu.net>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!westford.ccur.com!loepereShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!westford.ccur.com!loepere From: loepere@westford.ccur.com Newsgroups: gnu.g++.bug Subject: pointer to data members Message-ID: <8907010023.AA14460@uunet.uu.net> Date: 1 Jul 89 00:10:59 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 17