This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c/10696: linker problem with global variable
- From: ehrhardt at mathematik dot uni-ulm dot de
- To: bhuang at qubit-star dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 9 May 2003 09:32:07 -0000
- Subject: Re: c/10696: linker problem with global variable
- Reply-to: ehrhardt at mathematik dot uni-ulm dot de, bhuang at qubit-star dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: linker problem with global variable
State-Changed-From-To: open->closed
State-Changed-By: cae
State-Changed-When: Fri May 9 09:32:06 2003
State-Changed-Why:
Not a bug! As defined in 6.2.2 foo_global has external linkage in
both translation units, hence both identifiers refer to the same object.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10696