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]
Other format: [Raw text]

Re: c++/2768: odd warning on spurious 'static'


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


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