Clang build failure on Windows (both MSVC and MinGW GCC/Clang)

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 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 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 :frowning: Anyone know what’s wrong?

Ruben

Just update and it will go away :slight_smile:

2012/7/28 Nikola Smiljanic <popizdeh@gmail.com>

Just update and it will go away :slight_smile:

I think I’m getting the same failure (GCC 4.7.1 output this time), revision 160924:

[ 75%] 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:0:
M:/Development/Source/LLVM/tools/clang/include/clang/AST/DeclCXX.h:798:43: error: declaration of ‘typedef class clang::DeclContext::specific_decl_iteratorclang::VarDecl clang::CXXRecordDecl::static_data_iterator’
M:/Development/Source/LLVM/tools/clang/include/clang/AST/DeclCXX.h:784:43: error: conflicts with previous declaration ‘typedef class clang::DeclContext::specific_decl_iteratorclang::VarDecl clang::CXXRecordDecl::static_data_iterator’
M:/Development/Source/LLVM/tools/clang/include/clang/AST/DeclCXX.h:802:24: error: ‘clang::CXXRecordDecl::static_data_iterator clang::CXXRecordDecl::static_data_begin() const’ cannot be overloaded
M:/Development/Source/LLVM/tools/clang/include/clang/AST/DeclCXX.h:788:24: error: with ‘clang::CXXRecordDecl::static_data_iterator clang::CXXRecordDecl::static_data_begin() const’
M:/Development/Source/LLVM/tools/clang/include/clang/AST/DeclCXX.h:806:24: error: ‘clang::CXXRecordDecl::static_data_iterator clang::CXXRecordDecl::static_data_end() const’ cannot be overloaded
M:/Development/Source/LLVM/tools/clang/include/clang/AST/DeclCXX.h:792:24: error: with ‘clang::CXXRecordDecl::static_data_iterator clang::CXXRecordDecl::static_data_end() const’
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

Thank for the attempt though.

Ruben

OK. I officially hate SVN. It should tell me I modified the file locally (and yes, I know svn stat does just that :wink: )

Sorry for the noise.

Ruben

2012/7/28 Ruben Van Boxem <vanboxem.ruben@gmail.com>