[Bug c++/10634] in-class initialization of static data members no longer allowed
giovannibajo at libero dot it
gcc-bugzilla@gcc.gnu.org
Sat May 8 01:08:00 GMT 2004
------- Additional Comments From giovannibajo at libero dot it 2004-05-08 01:08 -------
Subject: Re: in-class initialization of static data members no longer allowed
pgonzalez at bluel dot com wrote:
> I originally solved the problem simply by moving the definition to the
> .cpp file. However, in that case the constant address can no longer
> be expanded inline and is replaced with an external reference.
Why is that? A static const integral variable should be always inlined, to the
best of my knowledge. This might be just a deficiency in the optimizers.
Giovanni Bajo
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10634
More information about the Gcc-bugs
mailing list