[Bug c++/19320] static const float initialization ignored
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Sat Jan 8 20:13:00 GMT 2005
------- 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
More information about the Gcc-bugs
mailing list