Bug 91869

Summary: import c++ classes crash ( unamed enum )
Product: [Applications] umbrello Reporter: Montana Low <grassmonty>
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

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