g++ otimizes out const globals
John Milford
jwm@CSUA.Berkeley.EDU
Wed Mar 31 23:54:00 GMT 1999
mrs@wrs.com (Mike Stump) wrote:
>
> Not a bug. I think you think that const int foo = 5; is external, it
> is not. If you want external, the way to spell it is `extern'.
>
Quite true, this is something that was not clearly
documented, and I screwed up. I am sorry for taking your time with
it. This was not meant as a personal attack on you or on the project
as a whole, a more direct response would have ended this much quicker.
--John
More information about the Gcc-bugs
mailing list