This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/9927: Compiler requires definition of static member constants
- From: bangerth at dealii dot org
- To: acbell at iastate dot edu, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 3 Mar 2003 22:01:45 -0000
- Subject: Re: c++/9927: Compiler requires definition of static member constants
- Reply-to: bangerth at dealii dot org, acbell at iastate dot edu, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
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