The SEGV occurs with qemu-aarch64 too.
The gcc-5 is one of the suspects.
0 libLLVM-3.5.so.1 0x00000040019fc1c4 llvm::sys::PrintStackTrace(_IO_FILE*) + 68
<snip>
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'c.cpp'.
4. Running pass 'Fast Register Allocator' on function '@__cxx_global_var_init'
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal (use -v to see invocation)
Ubuntu clang version 3.5.2-3ubuntu1 (tags/RELEASE_352/final) (based on LLVM 3.5.2)
Target: aarch64-unknown-linux-gnu
Thread model: posix
<snip>