GNOME Bugzilla – Bug 629667
MY_ENUM_VALUE = <constant> only works for last member
Last modified: 2018-01-25 15:55:15 UTC
typedef enum { REGRESS_TEST_VALUE1, REGRESS_TEST_VALUE2, - REGRESS_TEST_VALUE3 = 42 + REGRESS_TEST_VALUE3 = 42, + REGRESS_TEST_VALUE4 } RegressTestEnum; Doesn't cause the tests to fail - VALUE4 just vanishes. Suspect problem with the yacc grammar, but not immediately obviously to me what.
seems this has been fixed, but I'm attaching a patch for the test suite so that we don't regress.
Created attachment 253120 [details] [review] regress: Check that enum value assignments work for all members Value assignments can happen at any point in the enumeration declaration.
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]
Attachment 253120 [details] pushed as 832602b - regress: Check that enum value assignments work for all members