From: SourceForge.net <no...@so...> - 2007-10-28 18:52:36
|
Bugs item #1805702, was opened at 2007-10-01 16:22 Message generated for change (Comment added) made by borutr You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1805702&group_id=599 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: C-Front End Group: known bugs >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) >Assigned to: Borut Ražem (borutr) Summary: order of extern matters Initial Comment: this variable is treated as global extern int foo; int foo; this variable is treated as external, which i think is buggy. It should be a global as well int foo; extern int foo; ---------------------------------------------------------------------- >Comment By: Borut Ražem (borutr) Date: 2007-10-28 19:52 Message: Logged In: YES user_id=568035 Originator: NO fixed in svn version #4946. Borut ---------------------------------------------------------------------- Comment By: Borut Ražem (borutr) Date: 2007-10-22 22:22 Message: Logged In: YES user_id=568035 Originator: NO The problem is that the second declaration of foo replaces the first one. - result of the first example is int foo; - result of the second example is extern int foo; Borut ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1805702&group_id=599 |