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 548284 - enums not output before being referenced
enums not output before being referenced
Status: RESOLVED DUPLICATE of bug 471244
Product: vala
Classification: Core
Component: Code Generator
0.3.x
Other Linux
: Normal normal
: ---
Assigned To: Jürg Billeter
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2008-08-18 15:04 UTC by Michael Lawrence
Modified: 2008-09-27 12:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Michael Lawrence 2008-08-18 15:04:15 UTC
This code:

public struct Test.Struct {
  Enum a;
}

public enum Test.Enum {
  A, B, C
}

Leads to:

In file included from test.c:2:
test.h:15: error: expected specifier-qualifier-list before 'Enum'
error: cc exited with status 256
Compilation failed: 1 error(s), 0 warning(s)

Because test.h declares Enum after defining Struct.
Comment 1 Jürg Billeter 2008-09-27 12:11:12 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.


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