This is the mail archive of the gcc-bugs@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]

GCC 2.95.2 - Low Priority - References to members not implemented


Problem:
The compiler supports references to global functions but not members
variables nor member functions:

struct A
{
  void f() {}

  void (A::& pf)();
  
  A():pf(A::f) {}
} a;

Reports:
...: parse error before `&'

Version:
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.2/specs
gcc version 2.95.2 20000220 (Debian GNU/Linux)

Will it be supported eventually?


Thank you.
begin:vcard 
n:Bouchard;Philippe A.
x-mozilla-html:FALSE
org:Corel Linux
adr:;;;;;;
version:2.1
title:Software Engineer
x-mozilla-cpt:;0
fn:Philippe A. Bouchard
end:vcard

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