Clang segfaults in Linux kernel source code

Hi,
clang segfaults when parsing mm/slab.c from Linux kernel. The segfault happens in lib/AST/ASTContext.cpp on line 379 because ATy is NULL when parsing initialization of global structure instance using GCC extension. Sample input (shortened mm/slab.c) and backtrace is included in the attachment.

Regards,
Martin Doucha

crash.zip (7.91 KB)

Hi Martin,

Could you file a bugzilla report for this? That way your bug report doesn't get lost (especially since we're so close to the weekend) and we can track the bug until it gets fixed.

Best,
Ted

Nevermind. Daniel is already looking at it.