I quote, "/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward(args)...);
^"
❯ cd build
❯ cmake ..
CMake Warning (dev) at CMakeLists.txt:3 (project):
Policy CMP0048 is not set: project() command manages VERSION variables.
Run "cmake --help-policy CMP0048" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
The following variable(s) would be set to empty:
CMAKE_PROJECT_VERSION
CMAKE_PROJECT_VERSION_MAJOR
CMAKE_PROJECT_VERSION_MINOR
CMAKE_PROJECT_VERSION_PATCH
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning at CMakeLists.txt:33 (message):
You are using an untested compiler
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/fengshi/Workspace/coreir/build/verilogAST-download
[ 11%] Creating directories for 'verilogAST'
[ 22%] Performing download step (git clone) for 'verilogAST'
-- Avoiding repeated git clone, stamp file is up to date: '/Users/fengshi/Workspace/coreir/build/verilogAST-download/verilogAST-prefix/src/verilogAST-stamp/verilogAST-gitclone-lastrun.txt'
[ 33%] Performing update step for 'verilogAST'
[ 44%] No patch step for 'verilogAST'
[ 55%] No configure step for 'verilogAST'
[ 66%] No build step for 'verilogAST'
[ 77%] No install step for 'verilogAST'
[ 88%] No test step for 'verilogAST'
[100%] Completed 'verilogAST'
[100%] Built target verilogAST
-- /Users/fengshi/Workspace/coreir/src
CMake Deprecation Warning at CMakeLists.txt:3 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/fengshi/Workspace/coreir/build/tests/gtest/gtest-download
[ 11%] Creating directories for 'googletest'
[ 22%] Performing download step (git clone) for 'googletest'
-- Avoiding repeated git clone, stamp file is up to date: '/Users/fengshi/Workspace/coreir/build/tests/gtest/gtest-download/googletest-prefix/src/googletest-stamp/googletest-gitclone-lastrun.txt'
[ 33%] Performing update step for 'googletest'
HEAD is now at f5e592d8 Googletest export
[ 44%] No patch step for 'googletest'
[ 55%] No configure step for 'googletest'
[ 66%] No build step for 'googletest'
[ 77%] No install step for 'googletest'
[ 88%] No test step for 'googletest'
[100%] Completed 'googletest'
[100%] Built target googletest
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/fengshi/Workspace/coreir/build
❯ make -j4
Consolidate compiler generated dependencies of target gtest
Consolidate compiler generated dependencies of target verilogAST
[ 1%] Linking CXX static library ../../../../lib/libgtest.a
[ 2%] Linking CXX shared library ../lib/libverilogAST.dylib
[ 2%] Built target gtest
Consolidate compiler generated dependencies of target gtest_main
[ 2%] Linking CXX static library ../../../../lib/libgtest_main.a
[ 3%] Built target gtest_main
[ 6%] Built target verilogAST
Consolidate compiler generated dependencies of target coreir
[ 6%] Building CXX object src/CMakeFiles/coreir.dir/ir/common.cpp.o
[ 9%] Building CXX object src/CMakeFiles/coreir.dir/ir/constructor.cpp.o
[ 9%] Building CXX object src/CMakeFiles/coreir.dir/ir/context.cpp.o
[ 9%] Building CXX object src/CMakeFiles/coreir.dir/ir/args.cpp.o
In file included from /Users/fengshi/Workspace/coreir/src/ir/args.cpp:1:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/args.h:2:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1699:18: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::create<std::__1::map<std::__1::basic_string<char>, nlohmann::basic_json<>>>' requested here
object = create<object_t>();
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:10529:28: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::json_value::json_value' requested here
result.m_value = value_t::object;
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:10505:27: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parser::parse_internal' requested here
basic_json result = parse_internal(true);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:6689:62: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parser::parse' requested here
if (std::distance(first, last) <= 0) { return parser("").parse(); }
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:11913:26: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parse<const char *, 0>' requested here
return nlohmann::json::parse(s, s + n);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1682:9: note: 'construct' has been explicitly marked deprecated here
construct(_Up* __p, _Args&&... __args)
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/args.cpp:1:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/args.h:2:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct<std::__1::map<std::__1::basic_string<char>, nlohmann::basic_json<>>>' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1680:9: note: 'construct<std::__1::map<std::__1::basic_string<char>, nlohmann::basic_json<>>>' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_INLINE_VISIBILITY
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1058:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/args.cpp:1:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/args.h:2:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1704:17: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::create<std::__1::vector<nlohmann::basic_json<>>>' requested here
array = create<array_t>();
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:10529:28: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::json_value::json_value' requested here
result.m_value = value_t::object;
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:10505:27: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parser::parse_internal' requested here
basic_json result = parse_internal(true);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:6689:62: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parser::parse' requested here
if (std::distance(first, last) <= 0) { return parser("").parse(); }
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:11913:26: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parse<const char *, 0>' requested here
return nlohmann::json::parse(s, s + n);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1682:9: note: 'construct' has been explicitly marked deprecated here
construct(_Up* __p, _Args&&... __args)
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/args.cpp:1:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/args.h:2:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct<std::__1::vector<nlohmann::basic_json<>>>' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1680:9: note: 'construct<std::__1::vector<nlohmann::basic_json<>>>' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_INLINE_VISIBILITY
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1058:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/args.cpp:1:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/args.h:2:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1709:18: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::create<std::__1::basic_string<char>, char const (&)[1]>' requested here
string = create<string_t>("");
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:10529:28: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::json_value::json_value' requested here
result.m_value = value_t::object;
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:10505:27: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parser::parse_internal' requested here
basic_json result = parse_internal(true);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:6689:62: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parser::parse' requested here
if (std::distance(first, last) <= 0) { return parser("").parse(); }
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:11913:26: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parse<const char *, 0>' requested here
return nlohmann::json::parse(s, s + n);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1682:9: note: 'construct' has been explicitly marked deprecated here
construct(_Up* __p, _Args&&... __args)
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/args.cpp:1:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/args.h:2:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct<std::__1::basic_string<char>, char const (&)[1]>' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1680:9: note: 'construct<std::__1::basic_string<char>, char const (&)[1]>' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_INLINE_VISIBILITY
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1058:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/args.cpp:1:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/args.h:2:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1749:50: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::create<std::__1::basic_string<char>, const std::__1::basic_string<char> &>' requested here
json_value(const string_t& value) { string = create<string_t>(value); }
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:243:17: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::json_value::json_value' requested here
j.m_value = s;
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:517:42: note: in instantiation of function template specialization 'nlohmann::detail::external_constructor<nlohmann::detail::value_t::string>::construct<nlohmann::basic_json<>>' requested here
external_constructor<value_t::string>::construct(j, s);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:844:12: note: in instantiation of function template specialization 'nlohmann::detail::to_json<nlohmann::basic_json<>, std::__1::basic_string<char>, 0>' requested here
return to_json(j, std::forward<T>(val));
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:859:12: note: in instantiation of function template specialization 'nlohmann::detail::to_json_fn::call<nlohmann::basic_json<>, const std::__1::basic_string<char> &>' requested here
return call(j, std::forward<T>(val), priority_tag<1>{});
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:935:5: note: (skipping 1 context in backtrace; use -ftemplate-backtrace-limit=0 to see all)
::nlohmann::to_json(j, std::forward<ValueType>(val));
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1995:24: note: in instantiation of function template specialization 'nlohmann::adl_serializer<std::__1::basic_string<char>, void>::to_json<nlohmann::basic_json<>, const std::__1::basic_string<char> &>' requested here
JSONSerializer<U>::to_json(*this, std::forward<CompatibleType>(val));
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:10561:26: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::basic_json<const std::__1::basic_string<char> &, std::__1::basic_string<char>, 0>' requested here
basic_json k(key);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:10505:27: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parser::parse_internal' requested here
basic_json result = parse_internal(true);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:6689:62: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parser::parse' requested here
if (std::distance(first, last) <= 0) { return parser("").parse(); }
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:11913:26: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parse<const char *, 0>' requested here
return nlohmann::json::parse(s, s + n);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1682:9: note: 'construct' has been explicitly marked deprecated here
construct(_Up* __p, _Args&&... __args)
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/args.cpp:1:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/args.h:2:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct<std::__1::basic_string<char>, const std::__1::basic_string<char> &>' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1680:9: note: 'construct<std::__1::basic_string<char>, const std::__1::basic_string<char> &>' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_INLINE_VISIBILITY
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1058:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/args.cpp:1:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/args.h:2:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:2508:13: error: 'destroy' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.destroy(m_value.object);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:11913:10: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::~basic_json' requested here
return nlohmann::json::parse(s, s + n);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1686:5: note: 'destroy' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_INLINE_VISIBILITY void destroy(pointer __p) {__p->~_Tp();}
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1058:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/args.cpp:1:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/args.h:2:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:2515:13: error: 'destroy' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.destroy(m_value.array);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1686:5: note: 'destroy' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_INLINE_VISIBILITY void destroy(pointer __p) {__p->~_Tp();}
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1058:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/args.cpp:1:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/args.h:2:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:2522:13: error: 'destroy' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.destroy(m_value.string);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1686:5: note: 'destroy' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_INLINE_VISIBILITY void destroy(pointer __p) {__p->~_Tp();}
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1058:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
^
11 errors generated.
make[2]: *** [src/CMakeFiles/coreir.dir/build.make:90: src/CMakeFiles/coreir.dir/ir/args.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /Users/fengshi/Workspace/coreir/src/ir/common.cpp:1:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/common.h:4:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1699:18: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::create<std::__1::map<std::__1::basic_string<char>, nlohmann::basic_json<>>>' requested here
object = create<object_t>();
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:10529:28: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::json_value::json_value' requested here
result.m_value = value_t::object;
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:10505:27: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parser::parse_internal' requested here
basic_json result = parse_internal(true);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:6689:62: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parser::parse' requested here
if (std::distance(first, last) <= 0) { return parser("").parse(); }
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:11913:26: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parse<const char *, 0>' requested here
return nlohmann::json::parse(s, s + n);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1682:9: note: 'construct' has been explicitly marked deprecated here
construct(_Up* __p, _Args&&... __args)
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/common.cpp:1:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/common.h:4:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct<std::__1::map<std::__1::basic_string<char>, nlohmann::basic_json<>>>' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1680:9: note: 'construct<std::__1::map<std::__1::basic_string<char>, nlohmann::basic_json<>>>' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_INLINE_VISIBILITY
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1058:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/common.cpp:1:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/common.h:4:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1704:17: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::create<std::__1::vector<nlohmann::basic_json<>>>' requested here
array = create<array_t>();
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:10529:28: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::json_value::json_value' requested here
result.m_value = value_t::object;
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:10505:27: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parser::parse_internal' requested here
basic_json result = parse_internal(true);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:6689:62: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parser::parse' requested here
if (std::distance(first, last) <= 0) { return parser("").parse(); }
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:11913:26: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parse<const char *, 0>' requested here
return nlohmann::json::parse(s, s + n);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1682:9: note: 'construct' has been explicitly marked deprecated here
construct(_Up* __p, _Args&&... __args)
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/common.cpp:1:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/common.h:4:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct<std::__1::vector<nlohmann::basic_json<>>>' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1680:9: note: 'construct<std::__1::vector<nlohmann::basic_json<>>>' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_INLINE_VISIBILITY
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1058:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/common.cpp:1:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/common.h:4:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1709:18: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::create<std::__1::basic_string<char>, char const (&)[1]>' requested here
string = create<string_t>("");
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:10529:28: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::json_value::json_value' requested here
result.m_value = value_t::object;
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:10505:27: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parser::parse_internal' requested here
basic_json result = parse_internal(true);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:6689:62: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parser::parse' requested here
if (std::distance(first, last) <= 0) { return parser("").parse(); }
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:11913:26: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parse<const char *, 0>' requested here
return nlohmann::json::parse(s, s + n);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1682:9: note: 'construct' has been explicitly marked deprecated here
construct(_Up* __p, _Args&&... __args)
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/common.cpp:1:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/common.h:4:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct<std::__1::basic_string<char>, char const (&)[1]>' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1680:9: note: 'construct<std::__1::basic_string<char>, char const (&)[1]>' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_INLINE_VISIBILITY
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1058:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/common.cpp:1:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/common.h:4:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1749:50: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::create<std::__1::basic_string<char>, const std::__1::basic_string<char> &>' requested here
json_value(const string_t& value) { string = create<string_t>(value); }
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:243:17: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::json_value::json_value' requested here
j.m_value = s;
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:517:42: note: in instantiation of function template specialization 'nlohmann::detail::external_constructor<nlohmann::detail::value_t::string>::construct<nlohmann::basic_json<>>' requested here
external_constructor<value_t::string>::construct(j, s);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:844:12: note: in instantiation of function template specialization 'nlohmann::detail::to_json<nlohmann::basic_json<>, std::__1::basic_string<char>, 0>' requested here
return to_json(j, std::forward<T>(val));
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:859:12: note: in instantiation of function template specialization 'nlohmann::detail::to_json_fn::call<nlohmann::basic_json<>, const std::__1::basic_string<char> &>' requested here
return call(j, std::forward<T>(val), priority_tag<1>{});
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:935:5: note: (skipping 1 context in backtrace; use -ftemplate-backtrace-limit=0 to see all)
::nlohmann::to_json(j, std::forward<ValueType>(val));
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1995:24: note: in instantiation of function template specialization 'nlohmann::adl_serializer<std::__1::basic_string<char>, void>::to_json<nlohmann::basic_json<>, const std::__1::basic_string<char> &>' requested here
JSONSerializer<U>::to_json(*this, std::forward<CompatibleType>(val));
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:10561:26: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::basic_json<const std::__1::basic_string<char> &, std::__1::basic_string<char>, 0>' requested here
basic_json k(key);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:10505:27: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parser::parse_internal' requested here
basic_json result = parse_internal(true);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:6689:62: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parser::parse' requested here
if (std::distance(first, last) <= 0) { return parser("").parse(); }
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:11913:26: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parse<const char *, 0>' requested here
return nlohmann::json::parse(s, s + n);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1682:9: note: 'construct' has been explicitly marked deprecated here
construct(_Up* __p, _Args&&... __args)
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/common.cpp:1:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/common.h:4:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct<std::__1::basic_string<char>, const std::__1::basic_string<char> &>' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1680:9: note: 'construct<std::__1::basic_string<char>, const std::__1::basic_string<char> &>' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_INLINE_VISIBILITY
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1058:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/common.cpp:1:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/common.h:4:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:2508:13: error: 'destroy' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.destroy(m_value.object);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:11913:10: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::~basic_json' requested here
return nlohmann::json::parse(s, s + n);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1686:5: note: 'destroy' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_INLINE_VISIBILITY void destroy(pointer __p) {__p->~_Tp();}
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1058:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/common.cpp:1:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/common.h:4:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:2515:13: error: 'destroy' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.destroy(m_value.array);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1686:5: note: 'destroy' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_INLINE_VISIBILITY void destroy(pointer __p) {__p->~_Tp();}
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1058:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/common.cpp:1:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/common.h:4:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:2522:13: error: 'destroy' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.destroy(m_value.string);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1686:5: note: 'destroy' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_INLINE_VISIBILITY void destroy(pointer __p) {__p->~_Tp();}
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1058:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/constructor.cpp:3:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/constructor.h:3:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1699:18: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::create<std::__1::map<std::__1::basic_string<char>, nlohmann::basic_json<>>>' requested here
object = create<object_t>();
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:10529:28: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::json_value::json_value' requested here
result.m_value = value_t::object;
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:10505:27: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parser::parse_internal' requested here
basic_json result = parse_internal(true);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:6689:62: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parser::parse' requested here
if (std::distance(first, last) <= 0) { return parser("").parse(); }
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:11913:26: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parse<const char *, 0>' requested here
return nlohmann::json::parse(s, s + n);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1682:9: note: 'construct' has been explicitly marked deprecated here
construct(_Up* __p, _Args&&... __args)
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/constructor.cpp:3:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/constructor.h:3:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct<std::__1::map<std::__1::basic_string<char>, nlohmann::basic_json<>>>' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1680:9: note: 'construct<std::__1::map<std::__1::basic_string<char>, nlohmann::basic_json<>>>' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_INLINE_VISIBILITY
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1058:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/constructor.cpp:3:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/constructor.h:3:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1704:17: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::create<std::__1::vector<nlohmann::basic_json<>>>' requested here
array = create<array_t>();
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:10529:28: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::json_value::json_value' requested here
result.m_value = value_t::object;
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:10505:27: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parser::parse_internal' requested here
basic_json result = parse_internal(true);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:6689:62: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parser::parse' requested here
if (std::distance(first, last) <= 0) { return parser("").parse(); }
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:11913:26: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parse<const char *, 0>' requested here
return nlohmann::json::parse(s, s + n);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1682:9: note: 'construct' has been explicitly marked deprecated here
construct(_Up* __p, _Args&&... __args)
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/constructor.cpp:3:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/constructor.h:3:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct<std::__1::vector<nlohmann::basic_json<>>>' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1680:9: note: 'construct<std::__1::vector<nlohmann::basic_json<>>>' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_INLINE_VISIBILITY
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1058:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/constructor.cpp:3:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/constructor.h:3:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1709:18: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::create<std::__1::basic_string<char>, char const (&)[1]>' requested here
string = create<string_t>("");
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:10529:28: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::json_value::json_value' requested here
result.m_value = value_t::object;
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:10505:27: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parser::parse_internal' requested here
basic_json result = parse_internal(true);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:6689:62: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parser::parse' requested here
if (std::distance(first, last) <= 0) { return parser("").parse(); }
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:11913:26: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parse<const char *, 0>' requested here
return nlohmann::json::parse(s, s + n);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1682:9: note: 'construct' has been explicitly marked deprecated here
construct(_Up* __p, _Args&&... __args)
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/constructor.cpp:3:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/constructor.h:3:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct<std::__1::basic_string<char>, char const (&)[1]>' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1680:9: note: 'construct<std::__1::basic_string<char>, char const (&)[1]>' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_INLINE_VISIBILITY
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1058:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/constructor.cpp:3:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/constructor.h:3:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1749:50: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::create<std::__1::basic_string<char>, const std::__1::basic_string<char> &>' requested here
json_value(const string_t& value) { string = create<string_t>(value); }
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:243:17: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::json_value::json_value' requested here
j.m_value = s;
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:517:42: note: in instantiation of function template specialization 'nlohmann::detail::external_constructor<nlohmann::detail::value_t::string>::construct<nlohmann::basic_json<>>' requested here
external_constructor<value_t::string>::construct(j, s);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:844:12: note: in instantiation of function template specialization 'nlohmann::detail::to_json<nlohmann::basic_json<>, std::__1::basic_string<char>, 0>' requested here
return to_json(j, std::forward<T>(val));
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:859:12: note: in instantiation of function template specialization 'nlohmann::detail::to_json_fn::call<nlohmann::basic_json<>, const std::__1::basic_string<char> &>' requested here
return call(j, std::forward<T>(val), priority_tag<1>{});
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:935:5: note: (skipping 1 context in backtrace; use -ftemplate-backtrace-limit=0 to see all)
::nlohmann::to_json(j, std::forward<ValueType>(val));
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1995:24: note: in instantiation of function template specialization 'nlohmann::adl_serializer<std::__1::basic_string<char>, void>::to_json<nlohmann::basic_json<>, const std::__1::basic_string<char> &>' requested here
JSONSerializer<U>::to_json(*this, std::forward<CompatibleType>(val));
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:10561:26: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::basic_json<const std::__1::basic_string<char> &, std::__1::basic_string<char>, 0>' requested here
basic_json k(key);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:10505:27: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parser::parse_internal' requested here
basic_json result = parse_internal(true);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:6689:62: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parser::parse' requested here
if (std::distance(first, last) <= 0) { return parser("").parse(); }
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:11913:26: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parse<const char *, 0>' requested here
return nlohmann::json::parse(s, s + n);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1682:9: note: 'construct' has been explicitly marked deprecated here
construct(_Up* __p, _Args&&... __args)
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/constructor.cpp:3:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/constructor.h:3:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct<std::__1::basic_string<char>, const std::__1::basic_string<char> &>' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1680:9: note: 'construct<std::__1::basic_string<char>, const std::__1::basic_string<char> &>' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_INLINE_VISIBILITY
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1058:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/constructor.cpp:3:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/constructor.h:3:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:2508:13: error: 'destroy' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.destroy(m_value.object);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:11913:10: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::~basic_json' requested here
return nlohmann::json::parse(s, s + n);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1686:5: note: 'destroy' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_INLINE_VISIBILITY void destroy(pointer __p) {__p->~_Tp();}
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1058:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/constructor.cpp:3:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/constructor.h:3:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:2515:13: error: 'destroy' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.destroy(m_value.array);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1686:5: note: 'destroy' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_INLINE_VISIBILITY void destroy(pointer __p) {__p->~_Tp();}
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1058:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/constructor.cpp:3:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/constructor.h:3:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:2522:13: error: 'destroy' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.destroy(m_value.string);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1686:5: note: 'destroy' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_INLINE_VISIBILITY void destroy(pointer __p) {__p->~_Tp();}
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1058:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/common.cpp:1:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/common.h:4:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1752:50: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::create<std::__1::map<std::__1::basic_string<char>, nlohmann::basic_json<>>, const std::__1::map<std::__1::basic_string<char>, nlohmann::basic_json<>> &>' requested here
json_value(const object_t& value) { object = create<object_t>(value); }
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:2375:17: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::json_value::json_value' requested here
m_value = *other.m_value.object;
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/metadata.h:17:41: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::basic_json' requested here
void setMetaData(json j) { metadata = j; }
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1682:9: note: 'construct' has been explicitly marked deprecated here
construct(_Up* __p, _Args&&... __args)
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/common.cpp:1:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/common.h:4:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct<std::__1::map<std::__1::basic_string<char>, nlohmann::basic_json<>>, const std::__1::map<std::__1::basic_string<char>, nlohmann::basic_json<>> &>' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1680:9: note: 'construct<std::__1::map<std::__1::basic_string<char>, nlohmann::basic_json<>>, const std::__1::map<std::__1::basic_string<char>, nlohmann::basic_json<>> &>' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_INLINE_VISIBILITY
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1058:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/common.cpp:1:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/common.h:4:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1755:48: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::create<std::__1::vector<nlohmann::basic_json<>>, const std::__1::vector<nlohmann::basic_json<>> &>' requested here
json_value(const array_t& value) { array = create<array_t>(value); }
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:2380:17: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::json_value::json_value' requested here
m_value = *other.m_value.array;
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/metadata.h:17:41: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::basic_json' requested here
void setMetaData(json j) { metadata = j; }
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1682:9: note: 'construct' has been explicitly marked deprecated here
construct(_Up* __p, _Args&&... __args)
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/common.cpp:1:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/common.h:4:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct<std::__1::vector<nlohmann::basic_json<>>, const std::__1::vector<nlohmann::basic_json<>> &>' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1680:9: note: 'construct<std::__1::vector<nlohmann::basic_json<>>, const std::__1::vector<nlohmann::basic_json<>> &>' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_INLINE_VISIBILITY
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1058:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
^
15 errors generated.
make[2]: *** [src/CMakeFiles/coreir.dir/build.make:104: src/CMakeFiles/coreir.dir/ir/common.cpp.o] Error 1
In file included from /Users/fengshi/Workspace/coreir/src/ir/constructor.cpp:3:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/constructor.h:3:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1752:50: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::create<std::__1::map<std::__1::basic_string<char>, nlohmann::basic_json<>>, const std::__1::map<std::__1::basic_string<char>, nlohmann::basic_json<>> &>' requested here
json_value(const object_t& value) { object = create<object_t>(value); }
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:2375:17: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::json_value::json_value' requested here
m_value = *other.m_value.object;
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/metadata.h:17:41: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::basic_json' requested here
void setMetaData(json j) { metadata = j; }
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1682:9: note: 'construct' has been explicitly marked deprecated here
construct(_Up* __p, _Args&&... __args)
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/constructor.cpp:3:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/constructor.h:3:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct<std::__1::map<std::__1::basic_string<char>, nlohmann::basic_json<>>, const std::__1::map<std::__1::basic_string<char>, nlohmann::basic_json<>> &>' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1680:9: note: 'construct<std::__1::map<std::__1::basic_string<char>, nlohmann::basic_json<>>, const std::__1::map<std::__1::basic_string<char>, nlohmann::basic_json<>> &>' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_INLINE_VISIBILITY
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1058:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/constructor.cpp:3:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/constructor.h:3:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1755:48: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::create<std::__1::vector<nlohmann::basic_json<>>, const std::__1::vector<nlohmann::basic_json<>> &>' requested here
json_value(const array_t& value) { array = create<array_t>(value); }
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:2380:17: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::json_value::json_value' requested here
m_value = *other.m_value.array;
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/metadata.h:17:41: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::basic_json' requested here
void setMetaData(json j) { metadata = j; }
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1682:9: note: 'construct' has been explicitly marked deprecated here
construct(_Up* __p, _Args&&... __args)
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/constructor.cpp:3:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/constructor.h:3:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct<std::__1::vector<nlohmann::basic_json<>>, const std::__1::vector<nlohmann::basic_json<>> &>' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1680:9: note: 'construct<std::__1::vector<nlohmann::basic_json<>>, const std::__1::vector<nlohmann::basic_json<>> &>' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_INLINE_VISIBILITY
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1058:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
^
15 errors generated.
make[2]: *** [src/CMakeFiles/coreir.dir/build.make:118: src/CMakeFiles/coreir.dir/ir/constructor.cpp.o] Error 1
In file included from /Users/fengshi/Workspace/coreir/src/ir/context.cpp:2:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/context.h:4:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1699:18: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::create<std::__1::map<std::__1::basic_string<char>, nlohmann::basic_json<>>>' requested here
object = create<object_t>();
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:10529:28: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::json_value::json_value' requested here
result.m_value = value_t::object;
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:10505:27: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parser::parse_internal' requested here
basic_json result = parse_internal(true);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:6689:62: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parser::parse' requested here
if (std::distance(first, last) <= 0) { return parser("").parse(); }
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:11913:26: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parse<const char *, 0>' requested here
return nlohmann::json::parse(s, s + n);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1682:9: note: 'construct' has been explicitly marked deprecated here
construct(_Up* __p, _Args&&... __args)
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/context.cpp:2:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/context.h:4:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct<std::__1::map<std::__1::basic_string<char>, nlohmann::basic_json<>>>' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1680:9: note: 'construct<std::__1::map<std::__1::basic_string<char>, nlohmann::basic_json<>>>' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_INLINE_VISIBILITY
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1058:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/context.cpp:2:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/context.h:4:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1704:17: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::create<std::__1::vector<nlohmann::basic_json<>>>' requested here
array = create<array_t>();
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:10529:28: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::json_value::json_value' requested here
result.m_value = value_t::object;
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:10505:27: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parser::parse_internal' requested here
basic_json result = parse_internal(true);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:6689:62: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parser::parse' requested here
if (std::distance(first, last) <= 0) { return parser("").parse(); }
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:11913:26: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parse<const char *, 0>' requested here
return nlohmann::json::parse(s, s + n);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1682:9: note: 'construct' has been explicitly marked deprecated here
construct(_Up* __p, _Args&&... __args)
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/context.cpp:2:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/context.h:4:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct<std::__1::vector<nlohmann::basic_json<>>>' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1680:9: note: 'construct<std::__1::vector<nlohmann::basic_json<>>>' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_INLINE_VISIBILITY
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1058:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/context.cpp:2:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/context.h:4:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1709:18: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::create<std::__1::basic_string<char>, char const (&)[1]>' requested here
string = create<string_t>("");
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:10529:28: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::json_value::json_value' requested here
result.m_value = value_t::object;
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:10505:27: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parser::parse_internal' requested here
basic_json result = parse_internal(true);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:6689:62: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parser::parse' requested here
if (std::distance(first, last) <= 0) { return parser("").parse(); }
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:11913:26: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parse<const char *, 0>' requested here
return nlohmann::json::parse(s, s + n);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1682:9: note: 'construct' has been explicitly marked deprecated here
construct(_Up* __p, _Args&&... __args)
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/context.cpp:2:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/context.h:4:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct<std::__1::basic_string<char>, char const (&)[1]>' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1680:9: note: 'construct<std::__1::basic_string<char>, char const (&)[1]>' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_INLINE_VISIBILITY
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1058:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/context.cpp:2:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/context.h:4:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1749:50: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::create<std::__1::basic_string<char>, const std::__1::basic_string<char> &>' requested here
json_value(const string_t& value) { string = create<string_t>(value); }
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:243:17: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::json_value::json_value' requested here
j.m_value = s;
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:517:42: note: in instantiation of function template specialization 'nlohmann::detail::external_constructor<nlohmann::detail::value_t::string>::construct<nlohmann::basic_json<>>' requested here
external_constructor<value_t::string>::construct(j, s);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:844:12: note: in instantiation of function template specialization 'nlohmann::detail::to_json<nlohmann::basic_json<>, std::__1::basic_string<char>, 0>' requested here
return to_json(j, std::forward<T>(val));
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:859:12: note: in instantiation of function template specialization 'nlohmann::detail::to_json_fn::call<nlohmann::basic_json<>, const std::__1::basic_string<char> &>' requested here
return call(j, std::forward<T>(val), priority_tag<1>{});
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:935:5: note: (skipping 1 context in backtrace; use -ftemplate-backtrace-limit=0 to see all)
::nlohmann::to_json(j, std::forward<ValueType>(val));
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1995:24: note: in instantiation of function template specialization 'nlohmann::adl_serializer<std::__1::basic_string<char>, void>::to_json<nlohmann::basic_json<>, const std::__1::basic_string<char> &>' requested here
JSONSerializer<U>::to_json(*this, std::forward<CompatibleType>(val));
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:10561:26: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::basic_json<const std::__1::basic_string<char> &, std::__1::basic_string<char>, 0>' requested here
basic_json k(key);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:10505:27: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parser::parse_internal' requested here
basic_json result = parse_internal(true);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:6689:62: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parser::parse' requested here
if (std::distance(first, last) <= 0) { return parser("").parse(); }
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:11913:26: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::parse<const char *, 0>' requested here
return nlohmann::json::parse(s, s + n);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1682:9: note: 'construct' has been explicitly marked deprecated here
construct(_Up* __p, _Args&&... __args)
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/context.cpp:2:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/context.h:4:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct<std::__1::basic_string<char>, const std::__1::basic_string<char> &>' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1680:9: note: 'construct<std::__1::basic_string<char>, const std::__1::basic_string<char> &>' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_INLINE_VISIBILITY
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1058:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/context.cpp:2:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/context.h:4:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:2508:13: error: 'destroy' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.destroy(m_value.object);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:11913:10: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::~basic_json' requested here
return nlohmann::json::parse(s, s + n);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1686:5: note: 'destroy' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_INLINE_VISIBILITY void destroy(pointer __p) {__p->~_Tp();}
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1058:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/context.cpp:2:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/context.h:4:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:2515:13: error: 'destroy' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.destroy(m_value.array);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1686:5: note: 'destroy' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_INLINE_VISIBILITY void destroy(pointer __p) {__p->~_Tp();}
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1058:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/context.cpp:2:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/context.h:4:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:2522:13: error: 'destroy' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.destroy(m_value.string);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1686:5: note: 'destroy' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_INLINE_VISIBILITY void destroy(pointer __p) {__p->~_Tp();}
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1058:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/context.cpp:2:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/context.h:4:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1752:50: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::create<std::__1::map<std::__1::basic_string<char>, nlohmann::basic_json<>>, const std::__1::map<std::__1::basic_string<char>, nlohmann::basic_json<>> &>' requested here
json_value(const object_t& value) { object = create<object_t>(value); }
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:2375:17: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::json_value::json_value' requested here
m_value = *other.m_value.object;
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/metadata.h:17:41: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::basic_json' requested here
void setMetaData(json j) { metadata = j; }
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1682:9: note: 'construct' has been explicitly marked deprecated here
construct(_Up* __p, _Args&&... __args)
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/context.cpp:2:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/context.h:4:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct<std::__1::map<std::__1::basic_string<char>, nlohmann::basic_json<>>, const std::__1::map<std::__1::basic_string<char>, nlohmann::basic_json<>> &>' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1680:9: note: 'construct<std::__1::map<std::__1::basic_string<char>, nlohmann::basic_json<>>, const std::__1::map<std::__1::basic_string<char>, nlohmann::basic_json<>> &>' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_INLINE_VISIBILITY
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1058:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/context.cpp:2:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/context.h:4:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1755:48: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::create<std::__1::vector<nlohmann::basic_json<>>, const std::__1::vector<nlohmann::basic_json<>> &>' requested here
json_value(const array_t& value) { array = create<array_t>(value); }
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:2380:17: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::json_value::json_value' requested here
m_value = *other.m_value.array;
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/metadata.h:17:41: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::basic_json' requested here
void setMetaData(json j) { metadata = j; }
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1682:9: note: 'construct' has been explicitly marked deprecated here
construct(_Up* __p, _Args&&... __args)
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/context.cpp:2:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/context.h:4:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct<std::__1::vector<nlohmann::basic_json<>>, const std::__1::vector<nlohmann::basic_json<>> &>' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1680:9: note: 'construct<std::__1::vector<nlohmann::basic_json<>>, const std::__1::vector<nlohmann::basic_json<>> &>' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_INLINE_VISIBILITY
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1058:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/context.cpp:2:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/context.h:4:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:2109:23: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::create<std::__1::vector<nlohmann::basic_json<>>, std::initializer_list<nlohmann::basic_json<>> &>' requested here
m_value.array = create<array_t>(init);
^
/Users/fengshi/Workspace/coreir/src/ir/headers/mantle.hpp:268:26: note: in instantiation of member function 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long long, unsigned long long, double, std::allocator, adl_serializer>::basic_json' requested here
vjson["interface"] = {
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1682:9: note: 'construct' has been explicitly marked deprecated here
construct(_Up* __p, _Args&&... __args)
^
In file included from /Users/fengshi/Workspace/coreir/src/ir/context.cpp:2:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/context.h:4:
In file included from /Users/fengshi/Workspace/coreir/src/../include/coreir/ir/fwd_declare.h:53:
/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct<std::__1::vector<nlohmann::basic_json<>>, std::initializer_list<nlohmann::basic_json<>> &>' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward<Args>(args)...);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/memory:1680:9: note: 'construct<std::__1::vector<nlohmann::basic_json<>>, std::initializer_list<nlohmann::basic_json<>> &>' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_INLINE_VISIBILITY
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1058:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
# define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__config:1035:48: note: expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
^
17 errors generated.
make[2]: *** [src/CMakeFiles/coreir.dir/build.make:132: src/CMakeFiles/coreir.dir/ir/context.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:417: src/CMakeFiles/coreir.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
Hi all,
Does anyone know how can I solve the errors in this compilation?
Thanks a lot in advance
I quote, "/Users/fengshi/Workspace/coreir/src/../include/coreir/ir/json.h:1636:11: error: 'construct' is deprecated [-Werror,-Wdeprecated-declarations]
alloc.construct(object.get(), std::forward(args)...);
^"