From kde-bugs-dist Thu Nov 03 23:27:49 2005 From: Chris Burghart Date: Thu, 03 Nov 2005 23:27:49 +0000 To: kde-bugs-dist Subject: [Bug 110400] crash while importing Message-Id: <20051103232749.1862.qmail () ktown ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-bugs-dist&m=113106047407438 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. http://bugs.kde.org/show_bug.cgi?id=110400 burghart ucar edu changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |burghart ucar edu ------- Additional Comments From burghart ucar edu 2005-11-04 00:27 ------- This looks like the same bug I'm seeing when trying to import a header which contains a template specialization. Umbrello will crash importing this simple (and legal) C++ fragment (condensed from the Boost library header /usr/include/boost/shared_ptr.hpp): ------------------------------------------------- template struct shared_ptr_traits { typedef T & reference; }; template<> struct shared_ptr_traits { typedef void reference; }; ------------------------------------------------- Umbrello's class parser just doesn't like "template<>", which opens a parameterless template specialization. See Stroustrup's "The C++ Programming Language", 3rd edition, section 13.5 for details on template specialization.