This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/2768: odd warning on spurious 'static'
- From: rodrigc at gcc dot gnu dot org
- To: bh at techhouse dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, gdr at gcc dot gnu dot org
- Date: 3 Mar 2002 04:33:49 -0000
- Subject: Re: c++/2768: odd warning on spurious 'static'
- Reply-to: rodrigc at gcc dot gnu dot org, bh at techhouse dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, gdr at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
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