[cfe-dev] Clang build failure on Windows (both MSVC and MinGW GCC/Clang)

Ruben Van Boxem vanboxem.ruben at gmail.com
Sat Jul 28 11:46:26 PDT 2012


Hi,

I'm getting this build failure with revision 160920:
[ 66%] Building CXX object
tools/clang/lib/AST/CMakeFiles/clangAST.dir/APValue.cpp.obj
In file included from
M:\Development\Source\LLVM\tools\clang\lib\AST\APValue.cpp:17:
M:/Development/Source/LLVM/tools/clang/include\clang/AST/DeclCXX.h:798:43:
error:
      redefinition of 'static_data_iterator'
  typedef specific_decl_iterator<VarDecl> static_data_iterator;
                                          ^
M:/Development/Source/LLVM/tools/clang/include\clang/AST/DeclCXX.h:784:43:
note:
      previous definition is here
  typedef specific_decl_iterator<VarDecl> static_data_iterator;
                                          ^
M:/Development/Source/LLVM/tools/clang/include\clang/AST/DeclCXX.h:802:24:
error:
      class member cannot be redeclared
  static_data_iterator static_data_begin() const {
                       ^
M:/Development/Source/LLVM/tools/clang/include\clang/AST/DeclCXX.h:788:24:
note:
      previous declaration is here
  static_data_iterator static_data_begin() const {
                       ^
M:/Development/Source/LLVM/tools/clang/include\clang/AST/DeclCXX.h:806:24:
error:
      class member cannot be redeclared
  static_data_iterator static_data_end() const {
                       ^
M:/Development/Source/LLVM/tools/clang/include\clang/AST/DeclCXX.h:792:24:
note:
      previous declaration is here
  static_data_iterator static_data_end() const {
                       ^
M:/Development/Source/LLVM/tools/clang/include\clang/AST/DeclCXX.h:802:24:
error:
      redefinition of 'static_data_begin'
  static_data_iterator static_data_begin() const {
                       ^
M:/Development/Source/LLVM/tools/clang/include\clang/AST/DeclCXX.h:788:24:
note:
      previous definition is here
  static_data_iterator static_data_begin() const {
                       ^
M:/Development/Source/LLVM/tools/clang/include\clang/AST/DeclCXX.h:806:24:
error:
      redefinition of 'static_data_end'
  static_data_iterator static_data_end() const {
                       ^
M:/Development/Source/LLVM/tools/clang/include\clang/AST/DeclCXX.h:792:24:
note:
      previous definition is here
  static_data_iterator static_data_end() const {
                       ^
5 errors generated.
mingw32-make[2]: ***
[tools/clang/lib/AST/CMakeFiles/clangAST.dir/APValue.cpp.obj] Error 1
mingw32-make[1]: *** [tools/clang/lib/AST/CMakeFiles/clangAST.dir/all]
Error 2
mingw32-make: *** [all] Error 2

This was not a problem a few days ago :( Anyone know what's wrong?

Ruben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120728/e3950e86/attachment.html>


More information about the cfe-dev mailing list