This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: "const" globals are being handled as "static const" globals?


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]