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 669786 - Using const variables in a closure generates invalid C
Using const variables in a closure generates invalid C
Status: RESOLVED DUPLICATE of bug 678617
Product: vala
Classification: Core
Component: general
unspecified
Other Linux
: Normal minor
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2012-02-10 04:03 UTC by Evan Nemerson
Modified: 2016-10-14 12:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
test case (251 bytes, text/plain)
2012-02-10 04:03 UTC, Evan Nemerson
Details

Description Evan Nemerson 2012-02-10 04:03:46 UTC
Created attachment 207230 [details]
test case

Attempting to use a const from inside a closure valac will generate invalid C. The attached test case results in this error from gcc: "error: ‘foo’ undeclared (first use in this function)"
Comment 1 Rico Tzschichholz 2016-10-14 12:20:00 UTC

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