<div dir="ltr">Hi Kevin,<br><br>I have already completely rewritten the code that was crashing without saving it anywhere first. After some trials I have reproduced it in as small example as possible. I think that the original bug was slightly different, but since this one crashes too that should be ok for now.<br><br>To reproduce, try typing anything inside the GrandChild class. This will trigger the completion visitor that will crash (or at least should cause undefined behaviour). I checked this by adding an if condition that screams if there was an attempt to read from info->templateTypes past the end of its size.<br><br>It seems to be caused by multiple layers of templates.<br><br>Regards,<br>Gustaw<br><br>2015-08-04 0:22 GMT+02:00 Kevin Funk <<a href="mailto:kfunk@kde.org">kfunk@kde.org</a>>:<br>><br>> On Saturday 18 July 2015 22:51:01 Gustaw Smolarczyk wrote:<br>> > Hello,<br>> ><br>> > I am not really sure how I should provide it, but here is a patch of mine.<br>> > It fixes two bugs in kdev-clang (well, one of the "fixes" just prevents the<br>> > SIGSEGV). I am using llvm/clang from git, so the problem I was seeing may<br>> > only be visible on latest clang code.<br>> ><br>> > Regards,<br>> > Gustaw Smolarczyk<br>><br>> @Gustav, when do you see this SIGSEGV? Which code base is involved? Can you<br>> provide a MWE (<a href="https://en.wikipedia.org/wiki/Minimal_Working_Example">https://en.wikipedia.org/wiki/Minimal_Working_Example</a>)<br>><br>> Your help is appreciated!<br>><br>> Cheers<br>><br>> --<br>> Kevin Funk | <a href="mailto:kfunk@kde.org">kfunk@kde.org</a> | <a href="http://kfunk.org">http://kfunk.org</a></div>