After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 606725 - declaration of variable in for is not temporary
declaration of variable in for is not temporary
Status: RESOLVED DUPLICATE of bug 596861
Product: vala
Classification: Core
Component: Control Flow Statements
0.7.x
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2010-01-12 11:01 UTC by Luca Bruno
Modified: 2010-01-12 20:45 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Luca Bruno 2010-01-12 11:01:53 UTC
Hello,
if you write this code in an async method:
for (int i=0; ...)...
for (int i=0; ...)...

In the data struct created for async the member "i" is duplicated. This is the C error:
classes.c:96: error: duplicate member ‘i’

This also happens for all the variables declared in the for.
Comment 1 Luca Bruno 2010-01-12 20:45:43 UTC

*** This bug has been marked as a duplicate of bug 596861 ***