GNOME Bugzilla – Bug 748208
Bug #313527 regression - Enum in bitfield is not parsed properly.
Last modified: 2015-06-27 19:02:00 UTC
Created attachment 302020 [details] Test case that causes error. Bug #313527 which was fixed seems to have regressed during changes to add support for c++11 explicitly typed enums. The version that reintroduced the bad behaviour was at least "Release-1.8.1.2-20120729". Reproduction: enum testenum { ITEM_ONE, ITEM_TWO, }; /** testing struct */ struct testing { enum testenumtest1:2; ///< This field does not get parsed properly unsigned int test2:30; ///< other field }; The documentation for "struct testing" gets mangled as follows: unsigned int test2:30 < This is the field that does not get parsed properly More... I have found fix that seems to work, however my knowledge of the doxygen source code is not good so it may not be the best way of doing this.
Created attachment 302021 [details] Broken HTML output
Created attachment 302022 [details] [review] patch of proposed fix. Added a patch with proposed fix.
I've also created a pull request on github if that is preferred.
The first patch is breaks several tests. I'm working on a better solution.
The last comment was made in error. It does not refer to this issue.
Confirmed. Should be fixed in the next GIT update.
This bug was previously marked ASSIGNED, which means it should be fixed in doxygen version 1.8.10. Please verify if this is indeed the case. Reopen the bug if you think it is not fixed and please include any additional information that you think can be relevant (preferably in the form of a self-contained example).