This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14769] Block extern incorrectly resolved to file-scope internal linkage object
- From: "algrant at acm dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Mar 2004 14:31:10 -0000
- Subject: [Bug c++/14769] Block extern incorrectly resolved to file-scope internal linkage object
- References: <20040329115900.14769.algrant@acm.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From algrant at acm dot org 2004-03-29 14:31 -------
1) add a second translation unit
extern int i = 5;
2) compile, link, and run the two translation units. If it prints 5 it's ok,
if it prints 123 it's broken. For me it prints 123.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14769