Bug 91869 - import c++ classes crash ( unamed enum )
Summary: import c++ classes crash ( unamed enum )
Status: RESOLVED FIXED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-22 01:26 UTC by Montana Low
Modified: 2004-10-22 07:36 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Montana Low 2004-10-22 01:26:26 UTC
Version:            (using KDE KDE 3.3.1)
Installed from:    Gentoo Packages
Compiler:          gcc 
OS:                Linux

when the following code is encountered by "import c++ classes...", umbrello crashes.

enum {
...
};

the following code is successfully imported

enum AnEnumerator {
...
};

The code import still seems pretty buggy (although its very handy when it works), perhaps the whole thing should be wrapped in a try-catch, with a failure notice, instead of crashing the program?
Comment 1 Oliver Kellogg 2004-10-22 07:36:04 UTC
Fixed in cvs by following chekins:

parseEnumSpecifier(): Don't crash on anonymous enums.
  classparser/cpptree2uml.cpp 1.9

Skip anon enums. Create fake name for anon structs.
  classparser/cpptree2uml.h 1.5
  classparser/cpptree2uml.cpp 1.11