[Compilation/Bug??] LLVM 3.6.2 crashes with clang++

Hi all,

For some reasons I have to compile version 3.6.2, and carelessly I used clang++ 3.6.2 to compile the code, which results in a failure for make.

The detail of the crash is described in this link:
https://stackoverflow.com/questions/52650323/llvm-compile-recipe-for-target-lib-ir-releaseasserts-intrinsics-gen-tmp-f/54648425#54648425

When I changed the compiler to gcc, the problem is solved. However, in the documentation (https://releases.llvm.org/3.6.2/docs/GettingStarted.html) shows clang is supported.

Is this a bug? If not, what’s wrong with my understanding of the documentation?

Thanks,
Yushan