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 625159 - Generation of varargs with throws fails
Generation of varargs with throws fails
Status: RESOLVED DUPLICATE of bug 620673
Product: vala
Classification: Core
Component: Code Generator: GError
0.9.x
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2010-07-24 00:39 UTC by Andrew
Modified: 2010-07-24 21:37 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Andrew 2010-07-24 00:39:32 UTC
The code generator is unable to generate valid C code if a method with varargs also declares to throw an error, i.e.

void func(int val, ...) throws GLib.Error {}

generates:

void func(int val, ..., GError *error) {}

This occurs whether the function is declared within a method, static, extern'ed. Of particular note is that if defined in a vapi file, it is correctly able to call the function (i.e. call with error before the varargs).
Comment 1 zarevucky.jiri 2010-07-24 02:56:11 UTC
Duplicate of bug 620673.
Comment 2 Andrew 2010-07-24 21:37:04 UTC
Didn't find that one when I searched. Resolving as a duplicate.

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