ASTUnitTest.cpp does not compile under C++11

/usr/bin/g++ -DGTEST_HAS_RTTI=0 -DGTEST_HAS_TR1_TUPLE=0
-DGTEST_LANG_CXX11=1 -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-Itools/clang/unittests/Frontend
-I~/wk/LLVM/llvm/tools/clang/unittests/Frontend
-I~/wk/LLVM/llvm/tools/clang/include -Itools/clang/include
-I/usr/include/libxml2 -Iinclude -I~/wk/LLVM/llvm/include
-I~/wk/LLVM/llvm/utils/unittest/googletest/include
-I~/wk/LLVM/llvm/utils/unittest/googlemock/include -fPIC
-fvisibility-inlines-hidden -Werror=date-time -std=c++11 -Wall -Wextra
-Wno-unused-parameter -Wwrite-strings -Wcast-qual
-Wno-missing-field-initializers -pedantic -Wno-long-long
-Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment
-fdiagnostics-color -ffunction-sections -fdata-sections -fno-common
-Woverloaded-virtual -fno-strict-aliasing -O3 -UNDEBUG
-Wno-variadic-macros -fno-exceptions -fno-rtti -MD -MT
tools/clang/unittests/Frontend/CMakeFiles/FrontendTests.dir/ASTUnitTest.cpp.o
-MF tools/clang/unittests/Frontend/CMakeFiles/FrontendTests.dir/ASTUnitTest.cpp.o.d
-o tools/clang/unittests/Frontend/CMakeFiles/FrontendTests.dir/ASTUnitTest.cpp.o
-c ~/wk/LLVM/llvm/tools/clang/unittests/Frontend/ASTUnitTest.cpp

llvm/tools/clang/unittests/Frontend/ASTUnitTest.cpp:38:23: error:
‘make_unique’ is not a member of ‘std’
     input_file = std::make_unique<ToolOutputFile>(InputFileName, FD);
                       ^~~~~~~~~~~

Csaba

You need to use `-std=c++14` or `-std=c++1y` for this to work.

Yes -- that was implied by the subject line "ASTUnitTest.cpp does not
compile under C++11". I think the email is pointing out that this should
not be the case; some recent code change inadvertently introduced C++14
code there. Happily it appears to have been fixed in
https://github.com/llvm-mirror/clang/commit/3cab9725c69c7c7771a4aed5f3e17954702309f3

-- James