static const float initialization
Ryszard Kabatek
rysio@rumcajs.chemie.uni-halle.de
Wed Aug 19 01:48:00 GMT 1998
It's perhaps no bug, but...
The egcs-1.0.2 and the gcc 2.8.1 allow the initialization of a static
constant floating point member in the class declaration.
The CD2 allows such behaviour only for constant integer members.
class X {
static const int ix = 7; // OK
static const double dx = 10.5; // wrong
};
const int X::ix;
const double X::dx;
Ryszard Kabatek
Martin-Luther University Halle-Wittenberg
Department of Physical Chemistry
Geusaer Str. 88, 06217 Merseburg, Germany
Tel. +49 3461 46 2487 Fax. +49 3461 46 2129
e-mail: kabatek@chemie.uni-halle.de
More information about the Gcc-bugs
mailing list