This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/19320] static const float initialization ignored
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jan 2005 20:13:54 -0000
- Subject: [Bug c++/19320] static const float initialization ignored
- References: <20050107224145.19320.stefaandr@hotmail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2005-01-08 20:13 -------
The fact that it worked for the integer case is by chance, since gcc
seems to have been able to replace all references to that variable
by its value, but it wasn't for the floating point case. That is
often the case since many processors have instructions to load a
certain integer value into a register, but don't have the same
capability for floating point values.
In any case, the standard prescribes that you have to allocate memory for
both cases.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19320