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

2005-04-27 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-28 02:09 --- *** Bug 21089 has been marked as a duplicate of this bug. *** -- What|Removed |Added

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

2005-01-08 Thread bangerth at dealii 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 t

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

2005-01-07 Thread stefaandr at hotmail dot com
--- Additional Comments From stefaandr at hotmail dot com 2005-01-07 23:31 --- If accepting floats just as integers is an extension, then why does the same code compile without problems when using integers? (Static integer constants also need a memory location right? Or don't they?) bt

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

2005-01-07 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-07 22:47 --- Two things, this is invalid C++ in two different ways, one way is that initializing static constants that are not integer types is invalid (but is accepted as an extension). The other way is that you sti