Bugreport

Alexandre Oliva oliva@dcc.unicamp.br
Wed Jun 30 23:07:00 GMT 1999


On Jun 22, 1999, Simon Thum <Simon.Thum@mni.fh-giessen.de> wrote:

> and it stated a static member couldn´t access in-class data.

> class X{ private: int i; public: int f(int a=i){return i=a;} };

Thanks for your bug report.  This will probably be fixed in gcc-2.95.
The latest snapshot says:

t.cc:5: invalid use of member `X::i'

In fact, you can't use non-static data member in default argument
expressions.

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
{oliva,Alexandre.Oliva}@dcc.unicamp.br  aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
*** E-mail about software projects will be forwarded to mailing lists



More information about the Gcc-bugs mailing list