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 702602 - Constructor with varargs results in invalid header declaration
Constructor with varargs results in invalid header declaration
Status: RESOLVED OBSOLETE
Product: vala
Classification: Core
Component: Code Generator: GObject
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks: 688447
 
 
Reported: 2013-06-18 20:10 UTC by Stef Walter
Modified: 2018-05-22 14:48 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Vala test case (229 bytes, text/plain)
2013-06-18 20:11 UTC, Stef Walter
Details
Generated header (1.17 KB, text/plain)
2013-06-18 20:12 UTC, Stef Walter
Details

Description Stef Walter 2013-06-18 20:10:21 UTC
If an object constructor function contains a varargs, then the C code generator leaks an invalid declaration into the generated header.

Attached is a test case. The following line should not be present in the resulting header:

static Test* test_constructv (GType object_type, const gchar* format, va_list _vala_va_list);
Comment 1 Stef Walter 2013-06-18 20:11:19 UTC
Created attachment 247209 [details]
Vala test case

Test with:

$ valac --use-header --header=test-varargs-construct.h -C test-varargs-construct.vala
Comment 2 Stef Walter 2013-06-18 20:12:50 UTC
Created attachment 247210 [details]
Generated header

The generated header with incorrect declaration.
Comment 3 GNOME Infrastructure Team 2018-05-22 14:48:50 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/vala/issues/381.