If a class (i'll name it Foo for the example) in the diagram has a method returning a object of the same type (Foo there), then Dia2Code will crash (segfault) when generating C++ (and only C++) source code.
It seems to come from decls.c at line 138:
push (tmpnode, b); // called more than thousand times before crash
attach file is the diagram i used to find the source of the crash
Hope this helps