libclang crashed on nullptr

Hi,

I have found a crash on nullptr when parse Qt header files.

it caused by a dyn_cast on nullptr, at here (Line 9240 in SemaDecl.cpp):

Can you try and reduce the preprocessed file?

Adding back cfe-dev

This seems to be a crash on invalid code (and as such it might take a while to fix). I’ve opened a bug report with reduced test case http://llvm.org/bugs/show_bug.cgi?id=20525

Now I suggest you do some debugging and figure out why QtPrivate::FunctionPointer isn’t defined. It might be a bug in Qt or in the way your project is set up. It’s defined in qobjectdefs_impl.h if google is to be trusted :slight_smile:

Nikola