[Bug java/19738] gcjh generates invalid class member floating-point initialisers
rmathew at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Feb 1 11:20:00 GMT 2005
------- Additional Comments From rmathew at gcc dot gnu dot org 2005-02-01 11:19 -------
A patch to avoid this error is at:
http://gcc.gnu.org/ml/java-patches/2005-q1/msg00255.html
Note that the correct way to initialise a
const float is apparently:
class Foo
{
static const float bar;
}
const float ::Foo::bar = 123.456f;
If gcjh were to be modified to generate
code like this in the headers, we get
multiple definition errors from the linker
when two or more files #include the
generated file.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-02-01 11:19:42
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19738
More information about the Gcc-bugs
mailing list