Compile error "YAMLTraits.cpp" for C++ member detector function

Hi All,

I am trying to compile latest llvm code using xlc 12.1 on AIX and got the following error. I am trying to debug the issue. Has anybody seen the issue on linux/gcc or is it just xlc specific ?

[ 0%] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/YAMLTraits.cpp.o
“/llvm/version2/llvm/include/llvm/Support/YAMLTraits.h”, line 264.20: 1540-0118 (S) A class name is expected in the base specifier.
1540-0700 (I) The previous message was produced while processing “struct llvm::yaml::has_FlowTraits<const class llvm::StringRef,1>::Derived”.
“/llvm/version2/llvm/include/llvm/Support/YAMLTraits.h”, line 281.8: 1540-0700 (I) The previous message was produced while processing “struct llvm::yaml::has_SequenceTraits”.
“/llvm/version2/llvm/lib/Support/YAMLTraits.cpp”, line 589.6: 1540-0700 (I) The previous message was produced while processing “llvm::yaml::ScalarTraitsllvm::StringRef::output(const StringRef &, void *, raw_ostream &)”.

Thanks

Sunil Saggar

We have many buildbots running linux/gcc so it is likely xlc specific.
If you would like to avoid any build issues in the future on AIX/xlc
your best bet is to add an AIX/xlc buildbot that will alert us to
these issues as they are committed (see
<http://llvm.org/docs/HowToAddABuilder.html&gt;\).

-- Sean Silva