This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/5079: static const int optimization fails in conditional expressions
- From: nathan at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, muaddib at fundsxpress dot com, nobody at gcc dot gnu dot org
- Date: 15 Dec 2001 17:45:13 -0000
- Subject: Re: c++/5079: static const int optimization fails in conditional expressions
- Reply-to: nathan at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, muaddib at fundsxpress dot com, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: static const int optimization fails in conditional expressions
State-Changed-From-To: open->analyzed
State-Changed-By: nathan
State-Changed-When: Sat Dec 15 09:45:12 2001
State-Changed-Why:
This is an optimizer defficiency. Your code is ill formed
as you must give an out-of-class definition of the static
constant member. See [9.4.2]/4
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5079