DEBUG: Executing shell function do_compile
NOTE: cmake --build TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/build --target all --
[1/15] Building CXX object tests/CMakeFiles/gsl_noexcept_tests.dir/no_exception_ensure_tests.cpp.o
[2/15] Linking CXX executable tests/gsl_noexcept_tests
[3/15] Building CXX object tests/CMakeFiles/gsl_tests.dir/byte_tests.cpp.o
[4/15] Building CXX object tests/CMakeFiles/gsl_tests.dir/assertion_tests.cpp.o
[5/15] Building CXX object tests/CMakeFiles/gsl_tests.dir/algorithm_tests.cpp.o
FAILED: [code=1] tests/CMakeFiles/gsl_tests.dir/algorithm_tests.cpp.o
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot-native/usr/bin/aarch64-yoe-linux/aarch64-yoe-linux-clang++ --sysroot=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot -ITOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include -isystem TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/googletest/googletest/include -mcpu=cortex-a57+crc --dyld-prefix=/usr -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot -O2 -g -ffile-prefix-map=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2=/usr/src/debug/microsoft-gsl/4.2.2 -ffile-prefix-map=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/build=/usr/src/debug/microsoft-gsl/4.2.2 -ffile-prefix-map=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot= -ffile-prefix-map=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -Wno-error=unused-value -Wno-error=switch-default -std=c++17 -fno-strict-aliasing -Wall -Wcast-align -Wconversion -Wctor-dtor-privacy -Werror -Wextra -Wpedantic -Wshadow -Wsign-conversion -Wfloat-equal -Wno-deprecated-declarations -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-missing-braces -Wno-covered-switch-default -Wno-global-constructors -Wno-missing-prototypes -Wno-padded -Wno-switch-default -Wno-unknown-attributes -Wno-used-but-marked-unused -Wno-weak-vtables -Wno-unsafe-buffer-usage -MD -MT tests/CMakeFiles/gsl_tests.dir/algorithm_tests.cpp.o -MF tests/CMakeFiles/gsl_tests.dir/algorithm_tests.cpp.o.d -o tests/CMakeFiles/gsl_tests.dir/algorithm_tests.cpp.o -c TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/algorithm_tests.cpp
In file included from TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/algorithm_tests.cpp:19:
In file included from TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/algorithm:21:
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/./span:725:44: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
725 | constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
| ~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/./span:566:11: note: in instantiation of function template specialization 'gsl::span<int>::storage_type<gsl::details::extent_type<18446744073709551615>>::storage_type<gsl::details::extent_type<10>>' requested here
566 | : storage_(other.data(), details::extent_type<OtherExtent>(other.size()))
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/./span:751:50: note: in instantiation of function template specialization 'gsl::span<int>::span<int, 10UL, 18446744073709551615UL, 0>' requested here
751 | const span<element_type, dynamic_extent> tmp(*this);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/./span:634:16: note: in instantiation of function template specialization 'gsl::span<int, 10>::make_subspan<10UL>' requested here
634 | return make_subspan(offset, count, subspan_selector<Extent>{});
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/algorithm_tests.cpp:79:33: note: in instantiation of member function 'gsl::span<int, 10>::subspan' requested here
79 | copy(src_span, dst_span.subspan(src_span.size()));
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/./span:733:17: note: escapes to this field
733 | pointer data_;
| ~~~~~~~~^~~~~
1 error generated.
[6/15] Building CXX object tests/CMakeFiles/gsl_tests.dir/at_tests.cpp.o
FAILED: [code=1] tests/CMakeFiles/gsl_tests.dir/at_tests.cpp.o
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot-native/usr/bin/aarch64-yoe-linux/aarch64-yoe-linux-clang++ --sysroot=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot -ITOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include -isystem TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/googletest/googletest/include -mcpu=cortex-a57+crc --dyld-prefix=/usr -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot -O2 -g -ffile-prefix-map=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2=/usr/src/debug/microsoft-gsl/4.2.2 -ffile-prefix-map=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/build=/usr/src/debug/microsoft-gsl/4.2.2 -ffile-prefix-map=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot= -ffile-prefix-map=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -Wno-error=unused-value -Wno-error=switch-default -std=c++17 -fno-strict-aliasing -Wall -Wcast-align -Wconversion -Wctor-dtor-privacy -Werror -Wextra -Wpedantic -Wshadow -Wsign-conversion -Wfloat-equal -Wno-deprecated-declarations -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-missing-braces -Wno-covered-switch-default -Wno-global-constructors -Wno-missing-prototypes -Wno-padded -Wno-switch-default -Wno-unknown-attributes -Wno-used-but-marked-unused -Wno-weak-vtables -Wno-unsafe-buffer-usage -MD -MT tests/CMakeFiles/gsl_tests.dir/at_tests.cpp.o -MF tests/CMakeFiles/gsl_tests.dir/at_tests.cpp.o.d -o tests/CMakeFiles/gsl_tests.dir/at_tests.cpp.o -c TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/at_tests.cpp
In file included from TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/at_tests.cpp:19:
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/util:146:32: error: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-suggestions]
146 | constexpr T& at(T (&arr)[N], const index i)
| ~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/at_tests.cpp:39:27: note: in instantiation of function template specialization 'gsl::at<int, 4UL>' requested here
39 | EXPECT_TRUE(&gsl::at(a, i) == &a[i]);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/gtest.h:1833:50: note: expanded from macro 'EXPECT_TRUE'
1833 | #define EXPECT_TRUE(condition) GTEST_EXPECT_TRUE(condition)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/gtest.h:1819:23: note: expanded from macro 'GTEST_EXPECT_TRUE'
1819 | GTEST_TEST_BOOLEAN_(condition, #condition, false, true, \
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/internal/gtest-internal.h:1457:38: note: expanded from macro 'GTEST_TEST_BOOLEAN_'
1457 | ::testing::AssertionResult(expression), expected}) \
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/util:150:12: note: param returned here
150 | return arr[narrow_cast<std::size_t>(i)];
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/util:146:32: error: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-suggestions]
146 | constexpr T& at(T (&arr)[N], const index i)
| ~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/at_tests.cpp:40:27: note: in instantiation of function template specialization 'gsl::at<const int, 4UL>' requested here
40 | EXPECT_TRUE(&gsl::at(c_a, i) == &a[i]);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/gtest.h:1833:50: note: expanded from macro 'EXPECT_TRUE'
1833 | #define EXPECT_TRUE(condition) GTEST_EXPECT_TRUE(condition)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/gtest.h:1819:23: note: expanded from macro 'GTEST_EXPECT_TRUE'
1819 | GTEST_TEST_BOOLEAN_(condition, #condition, false, true, \
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/internal/gtest-internal.h:1457:38: note: expanded from macro 'GTEST_TEST_BOOLEAN_'
1457 | ::testing::AssertionResult(expression), expected}) \
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/util:150:12: note: param returned here
150 | return arr[narrow_cast<std::size_t>(i)];
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/util:158:33: error: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-suggestions]
158 | constexpr auto at(Cont& cont, const index i) -> decltype(cont[cont.size()])
| ~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/at_tests.cpp:62:27: note: in instantiation of function template specialization 'gsl::at<std::array<int, 4>>' requested here
62 | EXPECT_TRUE(&gsl::at(a, i) == &a[static_cast<std::size_t>(i)]);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/gtest.h:1833:50: note: expanded from macro 'EXPECT_TRUE'
1833 | #define EXPECT_TRUE(condition) GTEST_EXPECT_TRUE(condition)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/gtest.h:1819:23: note: expanded from macro 'GTEST_EXPECT_TRUE'
1819 | GTEST_TEST_BOOLEAN_(condition, #condition, false, true, \
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/internal/gtest-internal.h:1457:38: note: expanded from macro 'GTEST_TEST_BOOLEAN_'
1457 | ::testing::AssertionResult(expression), expected}) \
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/util:162:12: note: param returned here
162 | return cont[narrow_cast<size_type>(i)];
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/util:158:33: error: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-suggestions]
158 | constexpr auto at(Cont& cont, const index i) -> decltype(cont[cont.size()])
| ~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/at_tests.cpp:63:27: note: in instantiation of function template specialization 'gsl::at<const std::array<int, 4>>' requested here
63 | EXPECT_TRUE(&gsl::at(c_a, i) == &a[static_cast<std::size_t>(i)]);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/gtest.h:1833:50: note: expanded from macro 'EXPECT_TRUE'
1833 | #define EXPECT_TRUE(condition) GTEST_EXPECT_TRUE(condition)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/gtest.h:1819:23: note: expanded from macro 'GTEST_EXPECT_TRUE'
1819 | GTEST_TEST_BOOLEAN_(condition, #condition, false, true, \
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/internal/gtest-internal.h:1457:38: note: expanded from macro 'GTEST_TEST_BOOLEAN_'
1457 | ::testing::AssertionResult(expression), expected}) \
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/util:162:12: note: param returned here
162 | return cont[narrow_cast<size_type>(i)];
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/util:158:33: error: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-suggestions]
158 | constexpr auto at(Cont& cont, const index i) -> decltype(cont[cont.size()])
| ~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/at_tests.cpp:85:27: note: in instantiation of function template specialization 'gsl::at<std::vector<int>>' requested here
85 | EXPECT_TRUE(&gsl::at(a, i) == &a[static_cast<std::size_t>(i)]);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/gtest.h:1833:50: note: expanded from macro 'EXPECT_TRUE'
1833 | #define EXPECT_TRUE(condition) GTEST_EXPECT_TRUE(condition)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/gtest.h:1819:23: note: expanded from macro 'GTEST_EXPECT_TRUE'
1819 | GTEST_TEST_BOOLEAN_(condition, #condition, false, true, \
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/internal/gtest-internal.h:1457:38: note: expanded from macro 'GTEST_TEST_BOOLEAN_'
1457 | ::testing::AssertionResult(expression), expected}) \
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/util:162:12: note: param returned here
162 | return cont[narrow_cast<size_type>(i)];
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/util:158:33: error: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-suggestions]
158 | constexpr auto at(Cont& cont, const index i) -> decltype(cont[cont.size()])
| ~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/at_tests.cpp:86:27: note: in instantiation of function template specialization 'gsl::at<const std::vector<int>>' requested here
86 | EXPECT_TRUE(&gsl::at(c_a, i) == &a[static_cast<std::size_t>(i)]);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/gtest.h:1833:50: note: expanded from macro 'EXPECT_TRUE'
1833 | #define EXPECT_TRUE(condition) GTEST_EXPECT_TRUE(condition)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/gtest.h:1819:23: note: expanded from macro 'GTEST_EXPECT_TRUE'
1819 | GTEST_TEST_BOOLEAN_(condition, #condition, false, true, \
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/internal/gtest-internal.h:1457:38: note: expanded from macro 'GTEST_TEST_BOOLEAN_'
1457 | ::testing::AssertionResult(expression), expected}) \
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/util:162:12: note: param returned here
162 | return cont[narrow_cast<size_type>(i)];
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6 errors generated.
[7/15] Building CXX object tests/CMakeFiles/gsl_tests.dir/span_compatibility_tests.cpp.o
FAILED: [code=1] tests/CMakeFiles/gsl_tests.dir/span_compatibility_tests.cpp.o
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot-native/usr/bin/aarch64-yoe-linux/aarch64-yoe-linux-clang++ --sysroot=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot -ITOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include -isystem TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/googletest/googletest/include -mcpu=cortex-a57+crc --dyld-prefix=/usr -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot -O2 -g -ffile-prefix-map=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2=/usr/src/debug/microsoft-gsl/4.2.2 -ffile-prefix-map=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/build=/usr/src/debug/microsoft-gsl/4.2.2 -ffile-prefix-map=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot= -ffile-prefix-map=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -Wno-error=unused-value -Wno-error=switch-default -std=c++17 -fno-strict-aliasing -Wall -Wcast-align -Wconversion -Wctor-dtor-privacy -Werror -Wextra -Wpedantic -Wshadow -Wsign-conversion -Wfloat-equal -Wno-deprecated-declarations -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-missing-braces -Wno-covered-switch-default -Wno-global-constructors -Wno-missing-prototypes -Wno-padded -Wno-switch-default -Wno-unknown-attributes -Wno-used-but-marked-unused -Wno-weak-vtables -Wno-unsafe-buffer-usage -MD -MT tests/CMakeFiles/gsl_tests.dir/span_compatibility_tests.cpp.o -MF tests/CMakeFiles/gsl_tests.dir/span_compatibility_tests.cpp.o.d -o tests/CMakeFiles/gsl_tests.dir/span_compatibility_tests.cpp.o -c TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_compatibility_tests.cpp
In file included from TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_compatibility_tests.cpp:20:
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:725:44: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
725 | constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
| ~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:457:33: note: in instantiation of function template specialization 'gsl::span<int>::storage_type<gsl::details::extent_type<18446744073709551615>>::storage_type<gsl::details::extent_type<0>>' requested here
457 | constexpr span() noexcept : storage_(nullptr, details::extent_type<0>())
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_compatibility_tests.cpp:80:24: note: in instantiation of function template specialization 'gsl::span<int>::span<false, void>' requested here
80 | gsl::span<int> sp_dyn;
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:733:17: note: escapes to this field
733 | pointer data_;
| ~~~~~~~~^~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:725:44: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
725 | constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
| ~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:457:33: note: in instantiation of function template specialization 'gsl::span<int, 0>::storage_type<gsl::details::extent_type<0>>::storage_type<gsl::details::extent_type<0>>' requested here
457 | constexpr span() noexcept : storage_(nullptr, details::extent_type<0>())
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_compatibility_tests.cpp:86:27: note: in instantiation of function template specialization 'gsl::span<int, 0>::span<false, void>' requested here
86 | gsl::span<int, 0> sp_zero;
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:733:17: note: escapes to this field
733 | pointer data_;
| ~~~~~~~~^~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:725:44: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
725 | constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
| ~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:467:61: note: in instantiation of function template specialization 'gsl::span<int>::storage_type<gsl::details::extent_type<18446744073709551615>>::storage_type<unsigned long>' requested here
467 | constexpr span(pointer ptr, size_type count) noexcept : storage_(ptr, count)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_compatibility_tests.cpp:91:24: note: in instantiation of function template specialization 'gsl::span<int>::span<18446744073709551615UL, 0>' requested here
91 | gsl::span<int> sp_dyn_a(arr, 3);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:733:17: note: escapes to this field
733 | pointer data_;
| ~~~~~~~~^~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:725:44: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
725 | constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
| ~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:461:70: note: in instantiation of function template specialization 'gsl::span<int, 3>::storage_type<gsl::details::extent_type<3>>::storage_type<unsigned long>' requested here
461 | constexpr explicit span(pointer ptr, size_type count) noexcept : storage_(ptr, count)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_compatibility_tests.cpp:98:27: note: in instantiation of function template specialization 'gsl::span<int, 3>::span<3UL, 0>' requested here
98 | gsl::span<int, 3> sp_three_a(arr, 3);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:733:17: note: escapes to this field
733 | pointer data_;
| ~~~~~~~~^~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:725:44: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
725 | constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
| ~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:467:61: note: in instantiation of function template specialization 'gsl::span<const int>::storage_type<gsl::details::extent_type<18446744073709551615>>::storage_type<unsigned long>' requested here
467 | constexpr span(pointer ptr, size_type count) noexcept : storage_(ptr, count)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_compatibility_tests.cpp:105:30: note: in instantiation of function template specialization 'gsl::span<const int>::span<18446744073709551615UL, 0>' requested here
105 | gsl::span<const int> sp_const_a(arr, 3);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:733:17: note: escapes to this field
733 | pointer data_;
| ~~~~~~~~^~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:725:44: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
725 | constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
| ~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:566:11: note: in instantiation of function template specialization 'gsl::span<int>::storage_type<gsl::details::extent_type<18446744073709551615>>::storage_type<gsl::details::extent_type<3>>' requested here
566 | : storage_(other.data(), details::extent_type<OtherExtent>(other.size()))
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_compatibility_tests.cpp:185:24: note: in instantiation of function template specialization 'gsl::span<int>::span<int, 3UL, 18446744073709551615UL, 0>' requested here
185 | gsl::span<int> sp_b(orig_three);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:733:17: note: escapes to this field
733 | pointer data_;
| ~~~~~~~~^~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:725:44: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
725 | constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
| ~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:566:11: note: in instantiation of function template specialization 'gsl::span<const int>::storage_type<gsl::details::extent_type<18446744073709551615>>::storage_type<gsl::details::extent_type<18446744073709551615>>' requested here
566 | : storage_(other.data(), details::extent_type<OtherExtent>(other.size()))
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_compatibility_tests.cpp:189:30: note: in instantiation of function template specialization 'gsl::span<const int>::span<int, 18446744073709551615UL, 18446744073709551615UL, 0>' requested here
189 | gsl::span<const int> sp_d(orig_dyn);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:733:17: note: escapes to this field
733 | pointer data_;
| ~~~~~~~~^~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:725:44: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
725 | constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
| ~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:566:11: note: in instantiation of function template specialization 'gsl::span<const int>::storage_type<gsl::details::extent_type<18446744073709551615>>::storage_type<gsl::details::extent_type<3>>' requested here
566 | : storage_(other.data(), details::extent_type<OtherExtent>(other.size()))
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_compatibility_tests.cpp:190:30: note: in instantiation of function template specialization 'gsl::span<const int>::span<int, 3UL, 18446744073709551615UL, 0>' requested here
190 | gsl::span<const int> sp_e(orig_three);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:733:17: note: escapes to this field
733 | pointer data_;
| ~~~~~~~~^~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:725:44: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
725 | constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
| ~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:566:11: note: in instantiation of function template specialization 'gsl::span<const int, 3>::storage_type<gsl::details::extent_type<3>>::storage_type<gsl::details::extent_type<3>>' requested here
566 | : storage_(other.data(), details::extent_type<OtherExtent>(other.size()))
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_compatibility_tests.cpp:194:33: note: in instantiation of function template specialization 'gsl::span<const int, 3>::span<int, 3UL, 3UL, 0>' requested here
194 | gsl::span<const int, 3> sp_h(orig_three);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:733:17: note: escapes to this field
733 | pointer data_;
| ~~~~~~~~^~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:141:76: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
141 | constexpr span_iterator(pointer begin, pointer end, pointer current)
| ~~~~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:675:16: note: in instantiation of member function 'gsl::details::span_iterator<int>::span_iterator' requested here
675 | return {data, data + size(), data};
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_compatibility_tests.cpp:252:29: note: in instantiation of member function 'gsl::span<int>::begin' requested here
252 | it_dyn = sp_dyn.begin();
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:347:17: note: escapes to this field
347 | pointer current_ = nullptr;
| ~~~~~~~~^~~~~~~~~~~~~~~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:141:59: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
141 | constexpr span_iterator(pointer begin, pointer end, pointer current)
| ~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:346:17: note: escapes to this field
346 | pointer end_ = nullptr;
| ~~~~~~~~^~~~~~~~~~~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:141:46: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
141 | constexpr span_iterator(pointer begin, pointer end, pointer current)
| ~~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:345:17: note: escapes to this field
345 | pointer begin_ = nullptr;
| ~~~~~~~~^~~~~~~~~~~~~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:725:44: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
725 | constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
| ~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:461:70: note: in instantiation of function template specialization 'gsl::span<int, 4>::storage_type<gsl::details::extent_type<4>>::storage_type<unsigned long>' requested here
461 | constexpr explicit span(pointer ptr, size_type count) noexcept : storage_(ptr, count)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:588:16: note: in instantiation of function template specialization 'gsl::span<int, 4>::span<4UL, 0>' requested here
588 | return span<element_type, Count>{data(), Count};
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_compatibility_tests.cpp:276:32: note: in instantiation of function template specialization 'gsl::span<int, 9>::first<4UL>' requested here
276 | auto first_4 = sp_nine.first<4>();
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:733:17: note: escapes to this field
733 | pointer data_;
| ~~~~~~~~^~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:725:44: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
725 | constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
| ~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:566:11: note: in instantiation of function template specialization 'gsl::span<int>::storage_type<gsl::details::extent_type<18446744073709551615>>::storage_type<gsl::details::extent_type<9>>' requested here
566 | : storage_(other.data(), details::extent_type<OtherExtent>(other.size()))
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:751:50: note: in instantiation of function template specialization 'gsl::span<int>::span<int, 9UL, 18446744073709551615UL, 0>' requested here
751 | const span<element_type, dynamic_extent> tmp(*this);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:628:16: note: in instantiation of function template specialization 'gsl::span<int, 9>::make_subspan<9UL>' requested here
628 | return make_subspan(size() - count, dynamic_extent, subspan_selector<Extent>{});
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_compatibility_tests.cpp:303:31: note: in instantiation of member function 'gsl::span<int, 9>::last' requested here
303 | auto last_6 = sp_nine.last(6);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:733:17: note: escapes to this field
733 | pointer data_;
| ~~~~~~~~^~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:725:44: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
725 | constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
| ~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:461:70: note: in instantiation of function template specialization 'gsl::span<int, 5>::storage_type<gsl::details::extent_type<5>>::storage_type<unsigned long>' requested here
461 | constexpr explicit span(pointer ptr, size_type count) noexcept : storage_(ptr, count)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:616:16: note: in instantiation of function template specialization 'gsl::span<int, 5>::span<5UL, 0>' requested here
616 | return type{data() + Offset, Count == dynamic_extent ? size() - Offset : Count};
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_compatibility_tests.cpp:326:33: note: in instantiation of function template specialization 'gsl::span<int, 9>::subspan<4UL, 18446744073709551615UL>' requested here
326 | auto offset_4 = sp_nine.subspan<4>();
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:733:17: note: escapes to this field
733 | pointer data_;
| ~~~~~~~~^~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:725:44: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
725 | constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
| ~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:461:70: note: in instantiation of function template specialization 'gsl::span<int, 2>::storage_type<gsl::details::extent_type<2>>::storage_type<unsigned long>' requested here
461 | constexpr explicit span(pointer ptr, size_type count) noexcept : storage_(ptr, count)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:616:16: note: in instantiation of function template specialization 'gsl::span<int, 2>::span<2UL, 0>' requested here
616 | return type{data() + Offset, Count == dynamic_extent ? size() - Offset : Count};
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_compatibility_tests.cpp:352:33: note: in instantiation of function template specialization 'gsl::span<int>::subspan<3UL, 2UL>' requested here
352 | auto subspan_3 = sp_dyn.subspan<3, 2>();
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:733:17: note: escapes to this field
733 | pointer data_;
| ~~~~~~~~^~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:180:55: error: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-suggestions]
180 | constexpr span_iterator& operator--() noexcept
| ~~~~~~~~~~ ^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/lib/aarch64-yoe-linux/16.2.0/../../../include/c++/16.2.0/bits/stl_iterator.h:262:10: note: in instantiation of member function 'gsl::details::span_iterator<int>::operator--' requested here
262 | return *--__tmp;
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_compatibility_tests.cpp:441:21: note: in instantiation of member function 'std::reverse_iterator<gsl::details::span_iterator<int>>::operator*' requested here
441 | EXPECT_TRUE(*sp_dyn.rbegin() == 90);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/gtest.h:1833:50: note: expanded from macro 'EXPECT_TRUE'
1833 | #define EXPECT_TRUE(condition) GTEST_EXPECT_TRUE(condition)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/gtest.h:1819:23: note: expanded from macro 'GTEST_EXPECT_TRUE'
1819 | GTEST_TEST_BOOLEAN_(condition, #condition, false, true, \
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/internal/gtest-internal.h:1457:38: note: expanded from macro 'GTEST_TEST_BOOLEAN_'
1457 | ::testing::AssertionResult(expression), expected}) \
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:184:20: note: param returned here
184 | return *this;
| ^~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:725:44: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
725 | constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
| ~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:467:61: note: in instantiation of function template specialization 'gsl::span<const std::byte>::storage_type<gsl::details::extent_type<18446744073709551615>>::storage_type<unsigned long>' requested here
467 | constexpr span(pointer ptr, size_type count) noexcept : storage_(ptr, count)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:835:12: note: in instantiation of function template specialization 'gsl::span<const std::byte>::span<18446744073709551615UL, 0>' requested here
835 | return type{reinterpret_cast<const gsl::impl::byte*>(s.data()), s.size_bytes()};
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_compatibility_tests.cpp:484:21: note: in instantiation of function template specialization 'gsl::as_bytes<int, 18446744073709551615UL>' requested here
484 | auto sp_1 = as_bytes(sp_dyn);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:733:17: note: escapes to this field
733 | pointer data_;
| ~~~~~~~~^~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:725:44: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
725 | constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
| ~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:461:70: note: in instantiation of function template specialization 'gsl::span<const std::byte, 36>::storage_type<gsl::details::extent_type<36>>::storage_type<unsigned long>' requested here
461 | constexpr explicit span(pointer ptr, size_type count) noexcept : storage_(ptr, count)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:835:12: note: in instantiation of function template specialization 'gsl::span<const std::byte, 36>::span<36UL, 0>' requested here
835 | return type{reinterpret_cast<const gsl::impl::byte*>(s.data()), s.size_bytes()};
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_compatibility_tests.cpp:485:21: note: in instantiation of function template specialization 'gsl::as_bytes<int, 9UL>' requested here
485 | auto sp_2 = as_bytes(sp_nine);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:733:17: note: escapes to this field
733 | pointer data_;
| ~~~~~~~~^~~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[8/15] Building CXX object tests/CMakeFiles/gsl_tests.dir/span_tests.cpp.o
FAILED: [code=1] tests/CMakeFiles/gsl_tests.dir/span_tests.cpp.o
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot-native/usr/bin/aarch64-yoe-linux/aarch64-yoe-linux-clang++ --sysroot=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot -ITOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include -isystem TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/googletest/googletest/include -mcpu=cortex-a57+crc --dyld-prefix=/usr -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot -O2 -g -ffile-prefix-map=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2=/usr/src/debug/microsoft-gsl/4.2.2 -ffile-prefix-map=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/build=/usr/src/debug/microsoft-gsl/4.2.2 -ffile-prefix-map=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot= -ffile-prefix-map=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -Wno-error=unused-value -Wno-error=switch-default -std=c++17 -fno-strict-aliasing -Wall -Wcast-align -Wconversion -Wctor-dtor-privacy -Werror -Wextra -Wpedantic -Wshadow -Wsign-conversion -Wfloat-equal -Wno-deprecated-declarations -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-missing-braces -Wno-covered-switch-default -Wno-global-constructors -Wno-missing-prototypes -Wno-padded -Wno-switch-default -Wno-unknown-attributes -Wno-used-but-marked-unused -Wno-weak-vtables -Wno-unsafe-buffer-usage -MD -MT tests/CMakeFiles/gsl_tests.dir/span_tests.cpp.o -MF tests/CMakeFiles/gsl_tests.dir/span_tests.cpp.o.d -o tests/CMakeFiles/gsl_tests.dir/span_tests.cpp.o -c TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_tests.cpp
In file included from TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_tests.cpp:20:
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:725:44: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
725 | constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
| ~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:457:33: note: in instantiation of function template specialization 'gsl::span<int>::storage_type<gsl::details::extent_type<18446744073709551615>>::storage_type<gsl::details::extent_type<0>>' requested here
457 | constexpr span() noexcept : storage_(nullptr, details::extent_type<0>())
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_tests.cpp:81:15: note: in instantiation of function template specialization 'gsl::span<int>::span<false, void>' requested here
81 | span<int> s;
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:733:17: note: escapes to this field
733 | pointer data_;
| ~~~~~~~~^~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:725:44: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
725 | constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
| ~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:457:33: note: in instantiation of function template specialization 'gsl::span<const int>::storage_type<gsl::details::extent_type<18446744073709551615>>::storage_type<gsl::details::extent_type<0>>' requested here
457 | constexpr span() noexcept : storage_(nullptr, details::extent_type<0>())
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_tests.cpp:85:21: note: in instantiation of function template specialization 'gsl::span<const int>::span<false, void>' requested here
85 | span<const int> cs;
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:733:17: note: escapes to this field
733 | pointer data_;
| ~~~~~~~~^~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:725:44: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
725 | constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
| ~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:457:33: note: in instantiation of function template specialization 'gsl::span<int, 0>::storage_type<gsl::details::extent_type<0>>::storage_type<gsl::details::extent_type<0>>' requested here
457 | constexpr span() noexcept : storage_(nullptr, details::extent_type<0>())
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_tests.cpp:92:18: note: in instantiation of function template specialization 'gsl::span<int, 0>::span<false, void>' requested here
92 | span<int, 0> s;
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:733:17: note: escapes to this field
733 | pointer data_;
| ~~~~~~~~^~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:725:44: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
725 | constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
| ~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:457:33: note: in instantiation of function template specialization 'gsl::span<const int, 0>::storage_type<gsl::details::extent_type<0>>::storage_type<gsl::details::extent_type<0>>' requested here
457 | constexpr span() noexcept : storage_(nullptr, details::extent_type<0>())
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_tests.cpp:96:24: note: in instantiation of function template specialization 'gsl::span<const int, 0>::span<false, void>' requested here
96 | span<const int, 0> cs;
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:733:17: note: escapes to this field
733 | pointer data_;
| ~~~~~~~~^~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:725:44: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
725 | constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
| ~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:467:61: note: in instantiation of function template specialization 'gsl::span<int>::storage_type<gsl::details::extent_type<18446744073709551615>>::storage_type<unsigned long>' requested here
467 | constexpr span(pointer ptr, size_type count) noexcept : storage_(ptr, count)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_tests.cpp:130:19: note: in instantiation of function template specialization 'gsl::span<int>::span<18446744073709551615UL, 0>' requested here
130 | span<int> s{nullptr, narrow_cast<span<int>::size_type>(0)};
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:733:17: note: escapes to this field
733 | pointer data_;
| ~~~~~~~~^~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:725:44: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
725 | constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
| ~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:461:70: note: in instantiation of function template specialization 'gsl::span<int, 1>::storage_type<gsl::details::extent_type<1>>::storage_type<unsigned long>' requested here
461 | constexpr explicit span(pointer ptr, size_type count) noexcept : storage_(ptr, count)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_tests.cpp:140:32: note: in instantiation of function template specialization 'gsl::span<int, 1>::span<1UL, 0>' requested here
140 | const span<int, 1> s{nullptr, narrow_cast<span<int>::size_type>(0)};
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:733:17: note: escapes to this field
733 | pointer data_;
| ~~~~~~~~^~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:725:44: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
725 | constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
| ~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:467:61: note: in instantiation of function template specialization 'gsl::span<const int>::storage_type<gsl::details::extent_type<18446744073709551615>>::storage_type<unsigned long>' requested here
467 | constexpr span(pointer ptr, size_type count) noexcept : storage_(ptr, count)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_tests.cpp:148:68: note: in instantiation of function template specialization 'gsl::span<const int>::span<18446744073709551615UL, 0>' requested here
148 | auto const_workaround_macro = []() { const span<const int> s{nullptr, 1}; };
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:733:17: note: escapes to this field
733 | pointer data_;
| ~~~~~~~~^~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:725:44: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
725 | constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
| ~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:461:70: note: in instantiation of function template specialization 'gsl::span<int, 0>::storage_type<gsl::details::extent_type<0>>::storage_type<unsigned long>' requested here
461 | constexpr explicit span(pointer ptr, size_type count) noexcept : storage_(ptr, count)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_tests.cpp:152:59: note: in instantiation of function template specialization 'gsl::span<int, 0>::span<0UL, 0>' requested here
152 | auto workaround_macro = []() { const span<int, 0> s{nullptr, 1}; };
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:733:17: note: escapes to this field
733 | pointer data_;
| ~~~~~~~~^~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:725:44: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
725 | constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
| ~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:461:70: note: in instantiation of function template specialization 'gsl::span<const int, 0>::storage_type<gsl::details::extent_type<0>>::storage_type<unsigned long>' requested here
461 | constexpr explicit span(pointer ptr, size_type count) noexcept : storage_(ptr, count)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_tests.cpp:155:71: note: in instantiation of function template specialization 'gsl::span<const int, 0>::span<0UL, 0>' requested here
155 | auto const_workaround_macro = []() { const span<const int, 0> s{nullptr, 1}; };
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:733:17: note: escapes to this field
733 | pointer data_;
| ~~~~~~~~^~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:725:44: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
725 | constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
| ~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:467:61: note: in instantiation of function template specialization 'gsl::span<int *>::storage_type<gsl::details::extent_type<18446744073709551615>>::storage_type<unsigned long>' requested here
467 | constexpr span(pointer ptr, size_type count) noexcept : storage_(ptr, count)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_tests.cpp:159:20: note: in instantiation of function template specialization 'gsl::span<int *>::span<18446744073709551615UL, 0>' requested here
159 | span<int*> s{nullptr, narrow_cast<span<int>::size_type>(0)};
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:733:17: note: escapes to this field
733 | pointer data_;
| ~~~~~~~~^~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:725:44: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
725 | constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
| ~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:467:61: note: in instantiation of function template specialization 'gsl::span<const int *>::storage_type<gsl::details::extent_type<18446744073709551615>>::storage_type<unsigned long>' requested here
467 | constexpr span(pointer ptr, size_type count) noexcept : storage_(ptr, count)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_tests.cpp:163:26: note: in instantiation of function template specialization 'gsl::span<const int *>::span<18446744073709551615UL, 0>' requested here
163 | span<const int*> cs{nullptr, narrow_cast<span<int>::size_type>(0)};
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:733:17: note: escapes to this field
733 | pointer data_;
| ~~~~~~~~^~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:725:44: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
725 | constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
| ~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:461:70: note: in instantiation of function template specialization 'gsl::span<int, 2>::storage_type<gsl::details::extent_type<2>>::storage_type<unsigned long>' requested here
461 | constexpr explicit span(pointer ptr, size_type count) noexcept : storage_(ptr, count)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_tests.cpp:202:22: note: in instantiation of function template specialization 'gsl::span<int, 2>::span<2UL, 0>' requested here
202 | span<int, 2> s{&arr[0], 2};
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:733:17: note: escapes to this field
733 | pointer data_;
| ~~~~~~~~^~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:725:44: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
725 | constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
| ~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:467:61: note: in instantiation of function template specialization 'gsl::span<int[3]>::storage_type<gsl::details::extent_type<18446744073709551615>>::storage_type<unsigned long>' requested here
467 | constexpr span(pointer ptr, size_type count) noexcept : storage_(ptr, count)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_tests.cpp:313:28: note: in instantiation of function template specialization 'gsl::span<int[3]>::span<18446744073709551615UL, 0>' requested here
313 | const span<int[3]> s{std::addressof(arr2d[0]), 1};
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:733:17: note: escapes to this field
733 | pointer data_;
| ~~~~~~~~^~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:725:44: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
725 | constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
| ~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:467:61: note: in instantiation of function template specialization 'gsl::span<int[3][2]>::storage_type<gsl::details::extent_type<18446744073709551615>>::storage_type<unsigned long>' requested here
467 | constexpr span(pointer ptr, size_type count) noexcept : storage_(ptr, count)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_tests.cpp:330:31: note: in instantiation of function template specialization 'gsl::span<int[3][2]>::span<18446744073709551615UL, 0>' requested here
330 | const span<int[3][2]> s{std::addressof(arr3d[0]), 1};
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:733:17: note: escapes to this field
733 | pointer data_;
| ~~~~~~~~^~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:725:44: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
725 | constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
| ~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:467:61: note: in instantiation of function template specialization 'gsl::span<double>::storage_type<gsl::details::extent_type<18446744073709551615>>::storage_type<unsigned long>' requested here
467 | constexpr span(pointer ptr, size_type count) noexcept : storage_(ptr, count)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_tests.cpp:348:22: note: in instantiation of function template specialization 'gsl::span<double>::span<18446744073709551615UL, 0>' requested here
348 | span<double> s(&arr[0][0][0], 10);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:733:17: note: escapes to this field
733 | pointer data_;
| ~~~~~~~~^~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:725:44: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
725 | constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
| ~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:467:61: note: in instantiation of function template specialization 'gsl::span<const char>::storage_type<gsl::details::extent_type<18446744073709551615>>::storage_type<unsigned long>' requested here
467 | constexpr span(pointer ptr, size_type count) noexcept : storage_(ptr, count)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:529:48: note: in instantiation of function template specialization 'gsl::span<const char>::span<18446744073709551615UL, 0>' requested here
529 | constexpr span(Container& cont) noexcept : span(cont.data(), cont.size())
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_tests.cpp:518:26: note: in instantiation of function template specialization 'gsl::span<const char>::span<18446744073709551615UL, std::basic_string<char>, 0>' requested here
518 | span<const char> cs{str};
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:733:17: note: escapes to this field
733 | pointer data_;
| ~~~~~~~~^~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:725:44: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
725 | constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
| ~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:457:33: note: in instantiation of function template specialization 'gsl::span<(anonymous namespace)::DerivedClass>::storage_type<gsl::details::extent_type<18446744073709551615>>::storage_type<gsl::details::extent_type<0>>' requested here
457 | constexpr span() noexcept : storage_(nullptr, details::extent_type<0>())
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_tests.cpp:577:28: note: in instantiation of function template specialization 'gsl::span<(anonymous namespace)::DerivedClass>::span<false, void>' requested here
577 | span<DerivedClass> avd;
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:733:17: note: escapes to this field
733 | pointer data_;
| ~~~~~~~~^~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:725:44: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
725 | constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
| ~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:566:11: note: in instantiation of function template specialization 'gsl::span<const (anonymous namespace)::DerivedClass>::storage_type<gsl::details::extent_type<18446744073709551615>>::storage_type<gsl::details::extent_type<18446744073709551615>>' requested here
566 | : storage_(other.data(), details::extent_type<OtherExtent>(other.size()))
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_tests.cpp:578:41: note: in instantiation of function template specialization 'gsl::span<const (anonymous namespace)::DerivedClass>::span<(anonymous namespace)::DerivedClass, 18446744073709551615UL, 18446744073709551615UL, 0>' requested here
578 | span<const DerivedClass> avcd = avd;
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:733:17: note: escapes to this field
733 | pointer data_;
| ~~~~~~~~^~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:725:44: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
725 | constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
| ~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:566:11: note: in instantiation of function template specialization 'gsl::span<const (anonymous namespace)::DerivedClass, 2>::storage_type<gsl::details::extent_type<2>>::storage_type<gsl::details::extent_type<2>>' requested here
566 | : storage_(other.data(), details::extent_type<OtherExtent>(other.size()))
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_tests.cpp:585:44: note: in instantiation of function template specialization 'gsl::span<const (anonymous namespace)::DerivedClass, 2>::span<(anonymous namespace)::DerivedClass, 2UL, 2UL, 0>' requested here
585 | span<const DerivedClass, 2> avcd = avd;
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:733:17: note: escapes to this field
733 | pointer data_;
| ~~~~~~~~^~~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[9/15] Building CXX object tests/CMakeFiles/gsl_tests.dir/owner_tests.cpp.o
[10/15] Building CXX object tests/CMakeFiles/gsl_tests.dir/strict_notnull_tests.cpp.o
FAILED: [code=1] tests/CMakeFiles/gsl_tests.dir/strict_notnull_tests.cpp.o
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot-native/usr/bin/aarch64-yoe-linux/aarch64-yoe-linux-clang++ --sysroot=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot -ITOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include -isystem TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/googletest/googletest/include -mcpu=cortex-a57+crc --dyld-prefix=/usr -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot -O2 -g -ffile-prefix-map=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2=/usr/src/debug/microsoft-gsl/4.2.2 -ffile-prefix-map=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/build=/usr/src/debug/microsoft-gsl/4.2.2 -ffile-prefix-map=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot= -ffile-prefix-map=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -Wno-error=unused-value -Wno-error=switch-default -std=c++17 -fno-strict-aliasing -Wall -Wcast-align -Wconversion -Wctor-dtor-privacy -Werror -Wextra -Wpedantic -Wshadow -Wsign-conversion -Wfloat-equal -Wno-deprecated-declarations -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-missing-braces -Wno-covered-switch-default -Wno-global-constructors -Wno-missing-prototypes -Wno-padded -Wno-switch-default -Wno-unknown-attributes -Wno-used-but-marked-unused -Wno-weak-vtables -Wno-unsafe-buffer-usage -MD -MT tests/CMakeFiles/gsl_tests.dir/strict_notnull_tests.cpp.o -MF tests/CMakeFiles/gsl_tests.dir/strict_notnull_tests.cpp.o.d -o tests/CMakeFiles/gsl_tests.dir/strict_notnull_tests.cpp.o -c TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/strict_notnull_tests.cpp
In file included from TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/strict_notnull_tests.cpp:17:
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/pointers:114:27: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
114 | constexpr not_null(T u) noexcept(std::is_nothrow_move_constructible<T>::value) : ptr_(std::move(u))
| ~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/pointers:288:102: note: in instantiation of function template specialization 'gsl::not_null<int *>::not_null<void>' requested here
288 | constexpr explicit strict_not_null(T u) noexcept(std::is_nothrow_move_constructible<T>::value) : not_null<T>(std::move(u))
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/strict_notnull_tests.cpp:122:23: note: in instantiation of function template specialization 'gsl::strict_not_null<int *>::strict_not_null<void>' requested here
122 | EXPECT_DEATH((strict_not_null<decltype(pi)>(pi)), expected);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/gtest-death-test.h:190:15: note: expanded from macro 'EXPECT_DEATH'
190 | EXPECT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, matcher)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/gtest-death-test.h:179:21: note: expanded from macro 'EXPECT_EXIT'
179 | GTEST_DEATH_TEST_(statement, predicate, matcher, GTEST_NONFATAL_FAILURE_)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/internal/gtest-death-test-internal.h:248:47: note: expanded from macro 'GTEST_DEATH_TEST_'
248 | GTEST_EXECUTE_DEATH_TEST_STATEMENT_(statement, gtest_dt); \
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/internal/gtest-death-test-internal.h:204:52: note: expanded from macro 'GTEST_EXECUTE_DEATH_TEST_STATEMENT_'
204 | GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); \
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/internal/gtest-internal.h:1318:5: note: expanded from macro 'GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_'
1318 | statement; \
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/pointers:151:7: note: escapes to this field
151 | T ptr_;
| ~~^~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/pointers:114:27: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
114 | constexpr not_null(T u) noexcept(std::is_nothrow_move_constructible<T>::value) : ptr_(std::move(u))
| ~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/pointers:288:102: note: in instantiation of function template specialization 'gsl::not_null<const int *>::not_null<void>' requested here
288 | constexpr explicit strict_not_null(T u) noexcept(std::is_nothrow_move_constructible<T>::value) : not_null<T>(std::move(u))
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/strict_notnull_tests.cpp:167:37: note: in instantiation of function template specialization 'gsl::strict_not_null<const int *>::strict_not_null<void>' requested here
167 | strict_not_null<const int*> x{cp};
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/pointers:151:7: note: escapes to this field
151 | T ptr_;
| ~~^~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/strict_notnull_tests.cpp:37:20: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
37 | RefCounted(T* p) : p_(p) {}
| ~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/strict_notnull_tests.cpp:114:19: note: in instantiation of member function 'RefCounted<int>::RefCounted' requested here
114 | auto rp = RefCounted<int>(&i);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/strict_notnull_tests.cpp:39:8: note: escapes to this field
39 | T* p_;
| ~~~^~
3 errors generated.
[11/15] Building CXX object tests/CMakeFiles/gsl_tests.dir/pointers_tests.cpp.o
FAILED: [code=1] tests/CMakeFiles/gsl_tests.dir/pointers_tests.cpp.o
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot-native/usr/bin/aarch64-yoe-linux/aarch64-yoe-linux-clang++ --sysroot=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot -ITOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include -isystem TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/googletest/googletest/include -mcpu=cortex-a57+crc --dyld-prefix=/usr -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot -O2 -g -ffile-prefix-map=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2=/usr/src/debug/microsoft-gsl/4.2.2 -ffile-prefix-map=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/build=/usr/src/debug/microsoft-gsl/4.2.2 -ffile-prefix-map=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot= -ffile-prefix-map=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -Wno-error=unused-value -Wno-error=switch-default -std=c++17 -fno-strict-aliasing -Wall -Wcast-align -Wconversion -Wctor-dtor-privacy -Werror -Wextra -Wpedantic -Wshadow -Wsign-conversion -Wfloat-equal -Wno-deprecated-declarations -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-missing-braces -Wno-covered-switch-default -Wno-global-constructors -Wno-missing-prototypes -Wno-padded -Wno-switch-default -Wno-unknown-attributes -Wno-used-but-marked-unused -Wno-weak-vtables -Wno-unsafe-buffer-usage -MD -MT tests/CMakeFiles/gsl_tests.dir/pointers_tests.cpp.o -MF tests/CMakeFiles/gsl_tests.dir/pointers_tests.cpp.o.d -o tests/CMakeFiles/gsl_tests.dir/pointers_tests.cpp.o -c TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/pointers_tests.cpp
In file included from TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/pointers_tests.cpp:3:
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/pointers:126:88: error: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-suggestions]
125 | constexpr details::value_or_reference_return_t<T> get() const
| ~~~
126 | noexcept(noexcept(details::value_or_reference_return_t<T>(std::declval<T&>())))
| ^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/pointers:133:58: note: in instantiation of member function 'gsl::not_null<std::unique_ptr<int>>::get' requested here
133 | constexpr decltype(auto) operator*() const { return *get(); }
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/pointers_tests.cpp:46:21: note: in instantiation of member function 'gsl::not_null<std::unique_ptr<int>>::operator*' requested here
46 | EXPECT_TRUE(*a == 0);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/gtest.h:1833:50: note: expanded from macro 'EXPECT_TRUE'
1833 | #define EXPECT_TRUE(condition) GTEST_EXPECT_TRUE(condition)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/gtest.h:1819:23: note: expanded from macro 'GTEST_EXPECT_TRUE'
1819 | GTEST_TEST_BOOLEAN_(condition, #condition, false, true, \
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/internal/gtest-internal.h:1457:38: note: expanded from macro 'GTEST_TEST_BOOLEAN_'
1457 | ::testing::AssertionResult(expression), expected}) \
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/pointers:128:16: note: param returned here
128 | return ptr_;
| ^~~~
1 error generated.
[12/15] Building CXX object tests/CMakeFiles/gsl_tests.dir/span_ext_tests.cpp.o
FAILED: [code=1] tests/CMakeFiles/gsl_tests.dir/span_ext_tests.cpp.o
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot-native/usr/bin/aarch64-yoe-linux/aarch64-yoe-linux-clang++ --sysroot=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot -ITOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include -isystem TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/googletest/googletest/include -mcpu=cortex-a57+crc --dyld-prefix=/usr -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot -O2 -g -ffile-prefix-map=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2=/usr/src/debug/microsoft-gsl/4.2.2 -ffile-prefix-map=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/build=/usr/src/debug/microsoft-gsl/4.2.2 -ffile-prefix-map=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot= -ffile-prefix-map=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -Wno-error=unused-value -Wno-error=switch-default -std=c++17 -fno-strict-aliasing -Wall -Wcast-align -Wconversion -Wctor-dtor-privacy -Werror -Wextra -Wpedantic -Wshadow -Wsign-conversion -Wfloat-equal -Wno-deprecated-declarations -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-missing-braces -Wno-covered-switch-default -Wno-global-constructors -Wno-missing-prototypes -Wno-padded -Wno-switch-default -Wno-unknown-attributes -Wno-used-but-marked-unused -Wno-weak-vtables -Wno-unsafe-buffer-usage -MD -MT tests/CMakeFiles/gsl_tests.dir/span_ext_tests.cpp.o -MF tests/CMakeFiles/gsl_tests.dir/span_ext_tests.cpp.o.d -o tests/CMakeFiles/gsl_tests.dir/span_ext_tests.cpp.o -c TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_ext_tests.cpp
In file included from TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_ext_tests.cpp:19:
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:725:44: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
725 | constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
| ~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:467:61: note: in instantiation of function template specialization 'gsl::span<int>::storage_type<gsl::details::extent_type<18446744073709551615>>::storage_type<unsigned long>' requested here
467 | constexpr span(pointer ptr, size_type count) noexcept : storage_(ptr, count)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/./span_ext:98:12: note: in instantiation of function template specialization 'gsl::span<int>::span<18446744073709551615UL, 0>' requested here
98 | return span<ElementType>(ptr, count);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_ext_tests.cpp:43:18: note: in instantiation of function template specialization 'gsl::make_span<int>' requested here
43 | auto s = make_span(&arr[0], 2);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:733:17: note: escapes to this field
733 | pointer data_;
| ~~~~~~~~^~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:725:44: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
725 | constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
| ~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:467:61: note: in instantiation of function template specialization 'gsl::span<int[3]>::storage_type<gsl::details::extent_type<18446744073709551615>>::storage_type<unsigned long>' requested here
467 | constexpr span(pointer ptr, size_type count) noexcept : storage_(ptr, count)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/./span_ext:98:12: note: in instantiation of function template specialization 'gsl::span<int[3]>::span<18446744073709551615UL, 0>' requested here
98 | return span<ElementType>(ptr, count);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_ext_tests.cpp:103:24: note: in instantiation of function template specialization 'gsl::make_span<int[3]>' requested here
103 | const auto s = make_span(std::addressof(arr2d[0]), 1);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:733:17: note: escapes to this field
733 | pointer data_;
| ~~~~~~~~^~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:725:44: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
725 | constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
| ~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:467:61: note: in instantiation of function template specialization 'gsl::span<int[3][2]>::storage_type<gsl::details::extent_type<18446744073709551615>>::storage_type<unsigned long>' requested here
467 | constexpr span(pointer ptr, size_type count) noexcept : storage_(ptr, count)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/./span_ext:98:12: note: in instantiation of function template specialization 'gsl::span<int[3][2]>::span<18446744073709551615UL, 0>' requested here
98 | return span<ElementType>(ptr, count);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_ext_tests.cpp:109:24: note: in instantiation of function template specialization 'gsl::make_span<int[3][2]>' requested here
109 | const auto s = make_span(std::addressof(arr3d[0]), 1);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:733:17: note: escapes to this field
733 | pointer data_;
| ~~~~~~~~^~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:725:44: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
725 | constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
| ~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:467:61: note: in instantiation of function template specialization 'gsl::span<double>::storage_type<gsl::details::extent_type<18446744073709551615>>::storage_type<unsigned long>' requested here
467 | constexpr span(pointer ptr, size_type count) noexcept : storage_(ptr, count)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/./span_ext:98:12: note: in instantiation of function template specialization 'gsl::span<double>::span<18446744073709551615UL, 0>' requested here
98 | return span<ElementType>(ptr, count);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_ext_tests.cpp:120:18: note: in instantiation of function template specialization 'gsl::make_span<double>' requested here
120 | auto s = make_span(&arr[0][0][0], 10);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:733:17: note: escapes to this field
733 | pointer data_;
| ~~~~~~~~^~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:725:44: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
725 | constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
| ~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:457:33: note: in instantiation of function template specialization 'gsl::span<int>::storage_type<gsl::details::extent_type<18446744073709551615>>::storage_type<gsl::details::extent_type<0>>' requested here
457 | constexpr span() noexcept : storage_(nullptr, details::extent_type<0>())
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_ext_tests.cpp:142:31: note: in instantiation of function template specialization 'gsl::span<int>::span<false, void>' requested here
142 | static gsl::span<int> s2;
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:733:17: note: escapes to this field
733 | pointer data_;
| ~~~~~~~~^~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:725:44: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
725 | constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
| ~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:467:61: note: in instantiation of function template specialization 'gsl::span<const int>::storage_type<gsl::details::extent_type<18446744073709551615>>::storage_type<unsigned long>' requested here
467 | constexpr span(pointer ptr, size_type count) noexcept : storage_(ptr, count)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:555:54: note: in instantiation of function template specialization 'gsl::span<const int>::span<18446744073709551615UL, 0>' requested here
555 | constexpr span(const Container& cont) noexcept : span(cont.data(), cont.size())
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/./span_ext:122:12: note: in instantiation of function template specialization 'gsl::span<const int>::span<18446744073709551615UL, std::vector<int>, 0>' requested here
122 | return span<const typename Container::value_type>(cont);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_ext_tests.cpp:189:19: note: in instantiation of function template specialization 'gsl::make_span<std::vector<int>>' requested here
189 | auto cs = make_span(cv);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:733:17: note: escapes to this field
733 | pointer data_;
| ~~~~~~~~^~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:141:46: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
141 | constexpr span_iterator(pointer begin, pointer end, pointer current)
| ~~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:675:16: note: in instantiation of member function 'gsl::details::span_iterator<int>::span_iterator' requested here
675 | return {data, data + size(), data};
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/span_ext_tests.cpp:238:19: note: in instantiation of member function 'gsl::span<int>::begin' requested here
238 | EXPECT_TRUE(s.begin() == begin(s));
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/gtest.h:1833:50: note: expanded from macro 'EXPECT_TRUE'
1833 | #define EXPECT_TRUE(condition) GTEST_EXPECT_TRUE(condition)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/gtest.h:1819:23: note: expanded from macro 'GTEST_EXPECT_TRUE'
1819 | GTEST_TEST_BOOLEAN_(condition, #condition, false, true, \
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/internal/gtest-internal.h:1457:38: note: expanded from macro 'GTEST_TEST_BOOLEAN_'
1457 | ::testing::AssertionResult(expression), expected}) \
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:345:17: note: escapes to this field
345 | pointer begin_ = nullptr;
| ~~~~~~~~^~~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:141:76: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
141 | constexpr span_iterator(pointer begin, pointer end, pointer current)
| ~~~~~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:347:17: note: escapes to this field
347 | pointer current_ = nullptr;
| ~~~~~~~~^~~~~~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:141:59: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
141 | constexpr span_iterator(pointer begin, pointer end, pointer current)
| ~~~~~~~~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:346:17: note: escapes to this field
346 | pointer end_ = nullptr;
| ~~~~~~~~^~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:163:55: error: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-suggestions]
163 | constexpr span_iterator& operator++() noexcept
| ~~~~~~~~~~ ^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/lib/aarch64-yoe-linux/16.2.0/../../../include/c++/16.2.0/bits/stl_algobase.h:1196:32: note: in instantiation of member function 'gsl::details::span_iterator<int>::operator++' requested here
1196 | for (; __first1 != __last1; ++__first1, (void) ++__first2)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/lib/aarch64-yoe-linux/16.2.0/../../../include/c++/16.2.0/bits/stl_algobase.h:1252:38: note: in instantiation of function template specialization 'std::__equal<false>::equal<gsl::details::span_iterator<int>, gsl::details::span_iterator<int>>' requested here
1252 | return std::__equal<__simple>::equal(__first1, __last1, __first2);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/lib/aarch64-yoe-linux/16.2.0/../../../include/c++/16.2.0/bits/stl_algobase.h:1261:19: note: in instantiation of function template specialization 'std::__equal_aux1<gsl::details::span_iterator<int>, gsl::details::span_iterator<int>>' requested here
1261 | return std::__equal_aux1(std::__niter_base(__first1),
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/lib/aarch64-yoe-linux/16.2.0/../../../include/c++/16.2.0/bits/stl_algobase.h:1603:19: note: in instantiation of function template specialization 'std::__equal_aux<gsl::details::span_iterator<int>, gsl::details::span_iterator<int>>' requested here
1603 | return std::__equal_aux(__first1, __last1, __first2);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/lib/aarch64-yoe-linux/16.2.0/../../../include/c++/16.2.0/bits/stl_algobase.h:1656:27: note: in instantiation of function template specialization 'std::equal<gsl::details::span_iterator<int>, gsl::details::span_iterator<int>>' requested here
1656 | return _GLIBCXX_STD_A::equal(__first1, __last1, __first2);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/lib/aarch64-yoe-linux/16.2.0/../../../include/c++/16.2.0/bits/stl_algobase.h:1726:30: note: in instantiation of function template specialization 'std::__equal4<gsl::details::span_iterator<int>, gsl::details::span_iterator<int>>' requested here
1726 | return _GLIBCXX_STD_A::__equal4(__first1, __last1, __first2, __last2);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/./span_ext:57:17: note: in instantiation of function template specialization 'std::equal<gsl::details::span_iterator<int>, gsl::details::span_iterator<int>>' requested here
57 | return std::equal(l.begin(), l.end(), r.begin(), r.end());
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/span:170:20: note: param returned here
170 | return *this;
| ^~~~~
10 errors generated.
[13/15] Building CXX object tests/CMakeFiles/gsl_tests.dir/notnull_tests.cpp.o
FAILED: [code=1] tests/CMakeFiles/gsl_tests.dir/notnull_tests.cpp.o
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot-native/usr/bin/aarch64-yoe-linux/aarch64-yoe-linux-clang++ --sysroot=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot -ITOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include -isystem TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/googletest/googletest/include -mcpu=cortex-a57+crc --dyld-prefix=/usr -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot -O2 -g -ffile-prefix-map=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2=/usr/src/debug/microsoft-gsl/4.2.2 -ffile-prefix-map=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/build=/usr/src/debug/microsoft-gsl/4.2.2 -ffile-prefix-map=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot= -ffile-prefix-map=TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -Wno-error=unused-value -Wno-error=switch-default -std=c++17 -fno-strict-aliasing -Wall -Wcast-align -Wconversion -Wctor-dtor-privacy -Werror -Wextra -Wpedantic -Wshadow -Wsign-conversion -Wfloat-equal -Wno-deprecated-declarations -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-missing-braces -Wno-covered-switch-default -Wno-global-constructors -Wno-missing-prototypes -Wno-padded -Wno-switch-default -Wno-unknown-attributes -Wno-used-but-marked-unused -Wno-weak-vtables -Wno-unsafe-buffer-usage -MD -MT tests/CMakeFiles/gsl_tests.dir/notnull_tests.cpp.o -MF tests/CMakeFiles/gsl_tests.dir/notnull_tests.cpp.o.d -o tests/CMakeFiles/gsl_tests.dir/notnull_tests.cpp.o -c TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/notnull_tests.cpp
In file included from TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/notnull_tests.cpp:19:
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/pointers:114:27: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
114 | constexpr not_null(T u) noexcept(std::is_nothrow_move_constructible<T>::value) : ptr_(std::move(u))
| ~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/notnull_tests.cpp:209:23: note: in instantiation of function template specialization 'gsl::not_null<int *>::not_null<void>' requested here
209 | EXPECT_DEATH((not_null<decltype(pi)>(pi)), expected);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/gtest-death-test.h:190:15: note: expanded from macro 'EXPECT_DEATH'
190 | EXPECT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, matcher)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/gtest-death-test.h:179:21: note: expanded from macro 'EXPECT_EXIT'
179 | GTEST_DEATH_TEST_(statement, predicate, matcher, GTEST_NONFATAL_FAILURE_)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/internal/gtest-death-test-internal.h:248:47: note: expanded from macro 'GTEST_DEATH_TEST_'
248 | GTEST_EXECUTE_DEATH_TEST_STATEMENT_(statement, gtest_dt); \
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/internal/gtest-death-test-internal.h:204:52: note: expanded from macro 'GTEST_EXECUTE_DEATH_TEST_STATEMENT_'
204 | GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); \
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/internal/gtest-internal.h:1318:5: note: expanded from macro 'GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_'
1318 | statement; \
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/pointers:151:7: note: escapes to this field
151 | T ptr_;
| ~~^~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/pointers:114:27: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
114 | constexpr not_null(T u) noexcept(std::is_nothrow_move_constructible<T>::value) : ptr_(std::move(u))
| ~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/notnull_tests.cpp:254:34: note: in instantiation of function template specialization 'gsl::not_null<const int *>::not_null<void>' requested here
254 | not_null<const int*> x = cp;
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/pointers:151:7: note: escapes to this field
151 | T ptr_;
| ~~^~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/pointers:114:27: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
114 | constexpr not_null(T u) noexcept(std::is_nothrow_move_constructible<T>::value) : ptr_(std::move(u))
| ~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/notnull_tests.cpp:336:26: note: in instantiation of function template specialization 'gsl::not_null<Unrelated *>::not_null<void>' requested here
336 | not_null<Unrelated*> u{&unrelated};
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/pointers:151:7: note: escapes to this field
151 | T ptr_;
| ~~^~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/pointers:114:27: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
114 | constexpr not_null(T u) noexcept(std::is_nothrow_move_constructible<T>::value) : ptr_(std::move(u))
| ~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/notnull_tests.cpp:338:26: note: in instantiation of function template specialization 'gsl::not_null<MyDerived *>::not_null<void>' requested here
338 | not_null<MyDerived*> p{&derived};
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/pointers:151:7: note: escapes to this field
151 | T ptr_;
| ~~^~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/pointers:114:27: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
114 | constexpr not_null(T u) noexcept(std::is_nothrow_move_constructible<T>::value) : ptr_(std::move(u))
| ~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/notnull_tests.cpp:339:23: note: in instantiation of function template specialization 'gsl::not_null<MyBase *>::not_null<void>' requested here
339 | not_null<MyBase*> q(&base);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/pointers:151:7: note: escapes to this field
151 | T ptr_;
| ~~^~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/pointers:126:88: error: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-suggestions]
125 | constexpr details::value_or_reference_return_t<T> get() const
| ~~~
126 | noexcept(noexcept(details::value_or_reference_return_t<T>(std::declval<T&>())))
| ^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/pointers:133:58: note: in instantiation of member function 'gsl::not_null<std::shared_ptr<NonCopyableNonMovable>>::get' requested here
133 | constexpr decltype(auto) operator*() const { return *get(); }
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/notnull_tests.cpp:419:44: note: in instantiation of member function 'gsl::not_null<std::shared_ptr<NonCopyableNonMovable>>::operator*' requested here
419 | EXPECT_TRUE(typeid(*sp1) == typeid(*NotNullSp1(sp1)));
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/gtest.h:1833:50: note: expanded from macro 'EXPECT_TRUE'
1833 | #define EXPECT_TRUE(condition) GTEST_EXPECT_TRUE(condition)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/gtest.h:1819:23: note: expanded from macro 'GTEST_EXPECT_TRUE'
1819 | GTEST_TEST_BOOLEAN_(condition, #condition, false, true, \
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/internal/gtest-internal.h:1457:38: note: expanded from macro 'GTEST_TEST_BOOLEAN_'
1457 | ::testing::AssertionResult(expression), expected}) \
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/pointers:128:16: note: param returned here
128 | return ptr_;
| ^~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/notnull_tests.cpp:54:20: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
54 | RefCounted(T* p) : p_(p) {}
| ~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/notnull_tests.cpp:201:19: note: in instantiation of member function 'RefCounted<int>::RefCounted' requested here
201 | auto rp = RefCounted<int>(&i);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/notnull_tests.cpp:56:8: note: escapes to this field
56 | T* p_;
| ~~~^~
In file included from TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/notnull_tests.cpp:19:
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/pointers:114:27: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
114 | constexpr not_null(T u) noexcept(std::is_nothrow_move_constructible<T>::value) : ptr_(std::move(u))
| ~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/notnull_tests.cpp:282:18: note: in instantiation of function template specialization 'gsl::not_null<float *>::not_null<void>' requested here
282 | not_null<T*> p(&v);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/notnull_tests.cpp:302:5: note: in instantiation of function template specialization 'ostream_helper<float>' requested here
302 | ostream_helper<float>(21.5f);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/pointers:151:7: note: escapes to this field
151 | T ptr_;
| ~~^~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/pointers:114:27: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
114 | constexpr not_null(T u) noexcept(std::is_nothrow_move_constructible<T>::value) : ptr_(std::move(u))
| ~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/notnull_tests.cpp:282:18: note: in instantiation of function template specialization 'gsl::not_null<double *>::not_null<void>' requested here
282 | not_null<T*> p(&v);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/notnull_tests.cpp:303:5: note: in instantiation of function template specialization 'ostream_helper<double>' requested here
303 | ostream_helper<double>(3.4566e-7);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/pointers:151:7: note: escapes to this field
151 | T ptr_;
| ~~^~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/pointers:114:27: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
114 | constexpr not_null(T u) noexcept(std::is_nothrow_move_constructible<T>::value) : ptr_(std::move(u))
| ~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/notnull_tests.cpp:282:18: note: in instantiation of function template specialization 'gsl::not_null<char *>::not_null<void>' requested here
282 | not_null<T*> p(&v);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/notnull_tests.cpp:304:5: note: in instantiation of function template specialization 'ostream_helper<char>' requested here
304 | ostream_helper<char>('c');
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/pointers:151:7: note: escapes to this field
151 | T ptr_;
| ~~^~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/pointers:114:27: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
114 | constexpr not_null(T u) noexcept(std::is_nothrow_move_constructible<T>::value) : ptr_(std::move(u))
| ~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/notnull_tests.cpp:282:18: note: in instantiation of function template specialization 'gsl::not_null<unsigned short *>::not_null<void>' requested here
282 | not_null<T*> p(&v);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/notnull_tests.cpp:305:5: note: in instantiation of function template specialization 'ostream_helper<unsigned short>' requested here
305 | ostream_helper<uint16_t>(0x0123u);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/pointers:151:7: note: escapes to this field
151 | T ptr_;
| ~~^~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/pointers:114:27: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
114 | constexpr not_null(T u) noexcept(std::is_nothrow_move_constructible<T>::value) : ptr_(std::move(u))
| ~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/notnull_tests.cpp:282:18: note: in instantiation of function template specialization 'gsl::not_null<const char **>::not_null<void>' requested here
282 | not_null<T*> p(&v);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/notnull_tests.cpp:306:5: note: in instantiation of function template specialization 'ostream_helper<const char *>' requested here
306 | ostream_helper<const char*>("cstring");
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/pointers:151:7: note: escapes to this field
151 | T ptr_;
| ~~^~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/pointers:114:27: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
114 | constexpr not_null(T u) noexcept(std::is_nothrow_move_constructible<T>::value) : ptr_(std::move(u))
| ~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/notnull_tests.cpp:282:18: note: in instantiation of function template specialization 'gsl::not_null<std::basic_string<char> *>::not_null<void>' requested here
282 | not_null<T*> p(&v);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/notnull_tests.cpp:307:5: note: in instantiation of function template specialization 'ostream_helper<std::basic_string<char>>' requested here
307 | ostream_helper<std::string>("string");
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/pointers:151:7: note: escapes to this field
151 | T ptr_;
| ~~^~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/notnull_tests.cpp:63:19: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
63 | CustomPtr(T* p) : p_(p) {}
| ~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/notnull_tests.cpp:425:24: note: in instantiation of member function 'CustomPtr<int>::CustomPtr' requested here
425 | CustomPtr<int> p1(&ints[0]);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/notnull_tests.cpp:66:8: note: escapes to this field
66 | T* p_ = nullptr;
| ~~~^~
In file included from TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/notnull_tests.cpp:19:
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/pointers:126:88: error: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-suggestions]
125 | constexpr details::value_or_reference_return_t<T> get() const
| ~~~
126 | noexcept(noexcept(details::value_or_reference_return_t<T>(std::declval<T&>())))
| ^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/pointers:180:16: note: in instantiation of member function 'gsl::not_null<std::shared_ptr<int>>::get' requested here
180 | return lhs.get() == rhs.get();
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/notnull_tests.cpp:451:34: note: in instantiation of function template specialization 'gsl::operator==<std::shared_ptr<int>, std::shared_ptr<int>>' requested here
451 | EXPECT_TRUE((NotNullSp1(sp1) == NotNullSp1(sp1)) == true);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/gtest.h:1833:50: note: expanded from macro 'EXPECT_TRUE'
1833 | #define EXPECT_TRUE(condition) GTEST_EXPECT_TRUE(condition)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/gtest.h:1819:23: note: expanded from macro 'GTEST_EXPECT_TRUE'
1819 | GTEST_TEST_BOOLEAN_(condition, #condition, false, true, \
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/internal/gtest-internal.h:1457:38: note: expanded from macro 'GTEST_TEST_BOOLEAN_'
1457 | ::testing::AssertionResult(expression), expected}) \
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/pointers:128:16: note: param returned here
128 | return ptr_;
| ^~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/pointers:126:88: error: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-suggestions]
125 | constexpr details::value_or_reference_return_t<T> get() const
| ~~~
126 | noexcept(noexcept(details::value_or_reference_return_t<T>(std::declval<T&>())))
| ^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/pointers:180:29: note: in instantiation of member function 'gsl::not_null<std::shared_ptr<const int>>::get' requested here
180 | return lhs.get() == rhs.get();
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/notnull_tests.cpp:452:34: note: in instantiation of function template specialization 'gsl::operator==<std::shared_ptr<int>, std::shared_ptr<const int>>' requested here
452 | EXPECT_TRUE((NotNullSp1(sp1) == NotNullSp2(sp2)) == false);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/gtest.h:1833:50: note: expanded from macro 'EXPECT_TRUE'
1833 | #define EXPECT_TRUE(condition) GTEST_EXPECT_TRUE(condition)
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/gtest.h:1819:23: note: expanded from macro 'GTEST_EXPECT_TRUE'
1819 | GTEST_TEST_BOOLEAN_(condition, #condition, false, true, \
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/recipe-sysroot/usr/include/gtest/internal/gtest-internal.h:1457:38: note: expanded from macro 'GTEST_TEST_BOOLEAN_'
1457 | ::testing::AssertionResult(expression), expected}) \
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/include/gsl/pointers:128:16: note: param returned here
128 | return ptr_;
| ^~~~
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/notnull_tests.cpp:63:19: error: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Werror,-Wlifetime-safety-intra-tu-constructor-suggestions]
63 | CustomPtr(T* p) : p_(p) {}
| ~~~~^
| [[clang::lifetimebound]]
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/notnull_tests.cpp:478:26: note: in instantiation of member function 'CustomPtr<const int>::CustomPtr' requested here
478 | CustomPtr<const int> p2(&ints[1]);
| ^
TOPDIR/build/tmp/work/cortexa57-yoe-linux/microsoft-gsl/4.2.2/sources/microsoft-gsl-4.2.2/tests/notnull_tests.cpp:66:8: note: escapes to this field
66 | T* p_ = nullptr;
| ~~~^~
17 errors generated.
[14/15] Building CXX object tests/CMakeFiles/gsl_tests.dir/utils_tests.cpp.o
ninja: build stopped: subcommand failed.
WARNING: exit code 1 from a shell command.