This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/61: static initializers cannot access private members
- From: nathan at gcc dot gnu dot org
- To: bruce at eckelobjects dot com, gcc-bugs at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, martin at loewis dot home dot cs dot tu-berlin dot de, nobody at gcc dot gnu dot org
- Date: 9 Dec 2001 20:29:56 -0000
- Subject: Re: c++/61: static initializers cannot access private members
Synopsis: static initializers cannot access private members
State-Changed-From-To: analyzed->closed
State-Changed-By: nathan
State-Changed-When: Sun Dec 9 12:29:55 2001
State-Changed-Why:
Ahem, this code is ill formed.
you meant to write
void (Widget::*Widget::fptr[])(int) const = {
what you did write is a nonmember var!
With that correction, things are ok
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=61&database=gcc