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 313527 - Bug with enum bitfield in struct
Bug with enum bitfield in struct
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.4.x
Other All
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2005-08-15 15:05 UTC by Jan Eyolf Bjørnsen
Modified: 2011-01-03 19:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jan Eyolf Bjørnsen 2005-08-15 15:05:56 UTC
Please describe the problem:
Doxygen ignores enum bitfields in struct:

struct test{
enum cause_error:2;    /**< Two bit enum */
unsigned char blabla:1; /**< 1 bit value */
}

gives 

"
Data Fields
unsigned char 	blabla:1

Field Documentation
unsigned char test::blabla 	
< Two bit enum 1 bit value
"

This code is accepted without warnings in CodeVision AVR compiler

Steps to reproduce:
Described above

Actual results:
Described above

Expected results:
I would expect the enum value to be included under "Data Fields" and in "Field 
Documentation"

Does this happen every time?
Yes

Other information:
No
Comment 1 Jan Eyolf Bjørnsen 2005-08-15 15:10:24 UTC
The struct example should be

struct test{
enum cause_error test_enum:2;    /**< Two bit enum */
unsigned char blabla:1; /**< 1 bit value */
}
Comment 2 Peter 2010-10-13 10:08:19 UTC
Hello,
Any news about this issue?
Still present in version 1.7.2.
Peter
Comment 3 Dimitri van Heesch 2010-10-16 13:24:10 UTC
Confirmed. Should be fixed in the next subversion update.
Comment 4 Dimitri van Heesch 2011-01-03 19:01:44 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.7.3. 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.