This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: g++ otimizes out const globals
- To: mrs at wrs dot com (Mike Stump)
- Subject: Re: g++ otimizes out const globals
- From: John Milford <jwm at CSUA dot Berkeley dot EDU>
- Date: Tue, 16 Mar 1999 00:17:09 -0800
- Cc: egcs-bugs at egcs dot cygnus dot com
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