Bugs item #3153215, was opened at 2011-01-07 21:30
Message generated for change (Settings changed) made by epetrich
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100599&aid=3153215&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: fixed
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Christopher Head (hawk777)
>Assigned to: Erik Petrich (epetrich)
Summary: Variables escape from their scope
Initial Comment:
The attached file compiles. It shouldn't, because the variable "i" should be out of scope where it's used. Interestingly, removing either the "if" or the "while" around the "for" causes the proper error to appear!
----------------------------------------------------------------------
>Comment By: Erik Petrich (epetrich)
Date: 2012-02-18 23:06
Message:
Fixed in 3.1.2 #7331
----------------------------------------------------------------------
Comment By: Philipp Klaus Krause (spth)
Date: 2011-04-17 08:30
Message:
This could be related to bug #3190029, where the opposite problem occours:
A local variable being visible only in part of it's scope.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100599&aid=3153215&group_id=599
|