GNOME Bugzilla – Bug 638797
Vala miscompiles GLib.FileUtils.get_data
Last modified: 2011-04-22 14:03:09 UTC
Vala 0.10.2 seems to miscompile some code that uses GLib.FileUtils.get_data. This results in the following failure from gcc: vala-dpap-record.c:217:2: error: ‘this’ undeclared (first use in this function) vala-dpap-record.c:217:2: note: each undeclared identifier is reported only once for each function it appears in vala-dpap-record.c:218:2: warning: statement with no effect I have attached the Vala and C source. I am compiling to C using: /usr/bin/valac --vapidir=../vala --pkg gee-1.0 --pkg gtk+-2.0 --pkg gstreamer-0.10 --pkg libdmapsharing-3.0 --pkg libsoup-2.4 --pkg glib-2.0 dpapview.vala vala-dmap-db.vala vala-dpap-record.vala -C Vala 0.11.3 does not have this problem.
Created attachment 177633 [details] Vala source that fails to compile
Created attachment 177634 [details] Corresponding C source
Vala 0.12 has been released, the bugfix isn't going to be backported to 0.10. Closing as obsolete, thanks for taking time to report the bug.