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++/7094: initialized static const value in class disappears sometimes


Synopsis: initialized static const value in class disappears sometimes

State-Changed-From-To: open->closed
State-Changed-By: pme
State-Changed-When: Fri Jun 21 17:53:08 2002
State-Changed-Why:
    Thank you for your bug report.
    
    This is not a bug in GCC; your code is illegal.  You have
    only provided a declaration of a static member, you must
    still provide a definition.  (That's why the linker says
    the variable is undefined -- you haven't defined it.)
    
    You need to add
    
        int C::VALUE;
    
    somewhere.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7094


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