c++/2768: odd warning on spurious 'static'
rodrigc@gcc.gnu.org
rodrigc@gcc.gnu.org
Sat Mar 2 20:33:00 GMT 2002
Synopsis: odd warning on spurious 'static'
State-Changed-From-To: analyzed->closed
State-Changed-By: rodrigc
State-Changed-When: Sat Mar 2 20:33:48 2002
State-Changed-Why:
The error message printed in gcc 3.1 is:
a.cc:8: `static' may not be used when defining (as opposed to declaring) a
static data member
a.cc:11: cannot declare member function `static int A::f()' to have static
linkage
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=2768
More information about the Gcc-prs
mailing list