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]

[Bug c++/19320] static const float initialization ignored


------- 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


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