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 477326 - Incorrect C code generated for function inputting and outputting an array
Incorrect C code generated for function inputting and outputting an array
Status: RESOLVED DUPLICATE of bug 469335
Product: vala
Classification: Core
Component: Code Generator
0.1.x
Other All
: Normal normal
: ---
Assigned To: Jürg Billeter
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2007-09-15 22:08 UTC by hadley
Modified: 2007-09-18 21:16 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description hadley 2007-09-15 22:08:00 UTC
Please describe the problem:
This http://pastie.textmate.org/97528 vala code produces this http://pastie.textmate.org/97529 C code, which fails to compile because result_length1 is used in two places with different definitions.

Steps to reproduce:
1. 
2. 
3. 


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Jürg Billeter 2007-09-18 21:09:29 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

You can workaround the issue by renaming the local variable `result' to something different.

*** This bug has been marked as a duplicate of 469335 ***
Comment 2 hadley 2007-09-18 21:16:26 UTC
Thanks for the info!  Luckily I didn't lose any sleep over it ;)