This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: "const" globals are being handled as "static const" globals?
- To: Manfred Hollstein <manfred at s-direktnet dot de>
- Subject: Re: "const" globals are being handled as "static const" globals?
- From: "Brad M. Garcia" <bgarcia at fore dot com>
- Date: Thu, 14 May 1998 15:41:16 -0400 (EDT)
- cc: egcs-bugs at cygnus dot com
On Thu, 14 May 1998, Brad M. Garcia wrote:
> On Thu, 14 May 1998, Manfred Hollstein wrote:
>
> > egcs is correct in doing it this way. The C++ standard is different
> > from ANSI-C with regard to const's. If you want your const to get
> > extern linkage, you need to define it as "extern":
>
> In that case, it is still a bug, because egcs does the same thing
> when I compile it as C instead of C++.
I take that back.
(forgot to rename the file as a.c instead of a.cc).
Brad Garcia
___/ __ / __ / ___/ "Being the Linux of digital media
__/ / / / _/ __/ would be a very good life."
_/ ____/ _/ _| ____/ - Jean-Louis Gassee, CEO of Be, Inc.