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++/9927: Compiler requires definition of static member constants


Old Synopsis: Compiler doesn't inline static const int's used in ?:
New Synopsis: Compiler requires definition of static member constants

State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Mon Mar  3 22:01:45 2003
State-Changed-Why:
    The compiler is allowed to require that you provide a
    definition of static member constants. I think, they are
    even mandated. That's exactly what happens in your case.
    
    You'll notice, however, that if you compile with optimization,
    the compiler actually replaces references to these
    variables by their values, which is probably what you
    want.
    
    W.

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


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