foo.cc:1:2: error: stray ‘#’ in program
1 | V#include <iostream>
| ^
foo.cc:1:1: error: ‘V’ does not name a type
1 | V#include <iostream>
| ^
In file included from /nix/gcc/include/c++/14.2.1.20250322/bits/stl_algobase.h:62,
from /nix/gcc/include/c++/14.2.1.20250322/vector:62,
from foo.cc:2:
/nix/gcc/include/c++/14.2.1.20250322/ext/type_traits.h:164:35: error: ‘constexpr const bool __gnu_cxx::__is_null_pointer’ redeclared as different kind of entity
164 | __is_null_pointer(std::nullptr_t)
| ^
/nix/gcc/include/c++/14.2.1.20250322/ext/type_traits.h:159:5: note: previous declaration ‘template<class _Type> constexpr bool __gnu_cxx::__is_null_pointer(_Type)’
159 | __is_null_pointer(_Type)
| ^~~~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/ext/type_traits.h:164:26: error: ‘nullptr_t’ is not a member of ‘std’
164 | __is_null_pointer(std::nullptr_t)
| ^~~~~~~~~
In file included from /nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:60,
from /nix/gcc/include/c++/14.2.1.20250322/bits/stl_algobase.h:64:
/nix/gcc/include/c++/14.2.1.20250322/type_traits:295:27: error: ‘size_t’ has not been declared
295 | template <typename _Tp, size_t = sizeof(_Tp)>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:666:33: error: ‘nullptr_t’ is not a member of ‘std’
666 | struct is_null_pointer<std::nullptr_t>
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:666:33: error: ‘nullptr_t’ is not a member of ‘std’
/nix/gcc/include/c++/14.2.1.20250322/type_traits:666:42: error: template argument 1 is invalid
666 | struct is_null_pointer<std::nullptr_t>
| ^
/nix/gcc/include/c++/14.2.1.20250322/type_traits:670:48: error: template argument 1 is invalid
670 | struct is_null_pointer<const std::nullptr_t>
| ^
/nix/gcc/include/c++/14.2.1.20250322/type_traits:674:51: error: template argument 1 is invalid
674 | struct is_null_pointer<volatile std::nullptr_t>
| ^
/nix/gcc/include/c++/14.2.1.20250322/type_traits:678:57: error: template argument 1 is invalid
678 | struct is_null_pointer<const volatile std::nullptr_t>
| ^
/nix/gcc/include/c++/14.2.1.20250322/type_traits:984:26: error: ‘size_t’ has not been declared
984 | template<typename _Tp, size_t _Size>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:985:40: error: ‘_Size’ was not declared in this scope
985 | struct __is_array_known_bounds<_Tp[_Size]>
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:985:46: error: template argument 1 is invalid
985 | struct __is_array_known_bounds<_Tp[_Size]>
| ^
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1429:37: error: ‘size_t’ is not a member of ‘std’
1429 | : public integral_constant<std::size_t, alignof(_Tp)>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1429:37: error: ‘size_t’ is not a member of ‘std’
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1429:57: error: template argument 1 is invalid
1429 | : public integral_constant<std::size_t, alignof(_Tp)>
| ^
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1429:57: note: invalid template non-type parameter
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1438:37: error: ‘size_t’ is not a member of ‘std’
1438 | : public integral_constant<std::size_t, 0> { };
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1438:37: error: ‘size_t’ is not a member of ‘std’
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1438:46: error: template argument 1 is invalid
1438 | : public integral_constant<std::size_t, 0> { };
| ^
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1438:46: note: invalid template non-type parameter
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1440:31: error: ‘std::size_t’ has not been declared
1440 | template<typename _Tp, std::size_t _Size>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1441:21: error: ‘_Size’ was not declared in this scope
1441 | struct rank<_Tp[_Size]>
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1441:27: error: template argument 1 is invalid
1441 | struct rank<_Tp[_Size]>
| ^
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1442:37: error: ‘size_t’ is not a member of ‘std’
1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1442:37: error: ‘size_t’ is not a member of ‘std’
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1442:65: error: template argument 1 is invalid
1442 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1442:65: note: invalid template non-type parameter
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1446:37: error: ‘size_t’ is not a member of ‘std’
1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1446:37: error: ‘size_t’ is not a member of ‘std’
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1446:65: error: template argument 1 is invalid
1446 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1446:65: note: invalid template non-type parameter
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1451:32: error: ‘size_t’ was not declared in this scope
1451 | : public integral_constant<size_t, 0> { };
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:64:1: note: ‘size_t’ is defined in header ‘<cstddef>’; this is probably fixable by adding ‘#include <cstddef>’
63 | #include <bits/version.h>
+++ |+#include <cstddef>
64 |
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1451:41: error: template argument 1 is invalid
1451 | : public integral_constant<size_t, 0> { };
| ^
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1451:41: note: invalid template non-type parameter
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1453:26: error: ‘size_t’ has not been declared
1453 | template<typename _Tp, size_t _Size>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1454:23: error: ‘_Size’ was not declared in this scope
1454 | struct extent<_Tp[_Size], 0>
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1454:32: error: template argument 1 is invalid
1454 | struct extent<_Tp[_Size], 0>
| ^
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1455:32: error: ‘size_t’ was not declared in this scope
1455 | : public integral_constant<size_t, _Size> { };
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1455:32: note: ‘size_t’ is defined in header ‘<cstddef>’; this is probably fixable by adding ‘#include <cstddef>’
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1455:40: error: ‘_Size’ was not declared in this scope
1455 | : public integral_constant<size_t, _Size> { };
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1455:45: error: template argument 1 is invalid
1455 | : public integral_constant<size_t, _Size> { };
| ^
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1455:45: error: template argument 2 is invalid
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1457:42: error: ‘size_t’ has not been declared
1457 | template<typename _Tp, unsigned _Uint, size_t _Size>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1458:23: error: ‘_Size’ was not declared in this scope
1458 | struct extent<_Tp[_Size], _Uint>
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1458:36: error: template argument 1 is invalid
1458 | struct extent<_Tp[_Size], _Uint>
| ^
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1463:32: error: ‘size_t’ was not declared in this scope
1463 | : public integral_constant<size_t, 0> { };
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1463:32: note: ‘size_t’ is defined in header ‘<cstddef>’; this is probably fixable by adding ‘#include <cstddef>’
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1463:41: error: template argument 1 is invalid
1463 | : public integral_constant<size_t, 0> { };
| ^
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1463:41: note: invalid template non-type parameter
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1857:26: error: ‘size_t’ does not name a type
1857 | { static constexpr size_t __size = sizeof(_Tp); };
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1857:26: note: ‘size_t’ is defined in header ‘<cstddef>’; this is probably fixable by adding ‘#include <cstddef>’
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1859:14: error: ‘size_t’ has not been declared
1859 | template<size_t _Sz, typename _Tp, bool = (_Sz <= _Tp::__size)>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1859:48: error: ‘_Sz’ was not declared in this scope
1859 | template<size_t _Sz, typename _Tp, bool = (_Sz <= _Tp::__size)>
| ^~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1860:14: error: no default argument for ‘_Tp’
1860 | struct __select;
| ^~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1862:14: error: ‘size_t’ has not been declared
1862 | template<size_t _Sz, typename _Uint, typename... _UInts>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1863:23: error: ‘_Sz’ was not declared in this scope
1863 | struct __select<_Sz, _List<_Uint, _UInts...>, true>
| ^~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1863:57: error: template argument 1 is invalid
1863 | struct __select<_Sz, _List<_Uint, _UInts...>, true>
| ^
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1866:14: error: ‘size_t’ has not been declared
1866 | template<size_t _Sz, typename _Uint, typename... _UInts>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1867:23: error: ‘_Sz’ was not declared in this scope
1867 | struct __select<_Sz, _List<_Uint, _UInts...>, false>
| ^~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1867:58: error: template argument 1 is invalid
1867 | struct __select<_Sz, _List<_Uint, _UInts...>, false>
| ^
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1868:18: error: ‘_Sz’ was not declared in this scope
1868 | : __select<_Sz, _List<_UInts...>>
| ^~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1868:38: error: template argument 1 is invalid
1868 | : __select<_Sz, _List<_UInts...>>
| ^~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1859:60: error: ‘__size’ is not a member of ‘std::__make_unsigned_selector_base::_List<unsigned char, short unsigned int, unsigned int, long unsigned int, long long unsigned int>’
1859 | template<size_t _Sz, typename _Tp, bool = (_Sz <= _Tp::__size)>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1881:68: error: template argument 3 is invalid
1881 | using __unsigned_type = typename __select<sizeof(_Tp), _UInts>::__type;
| ^
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1885:47: error: ‘__unsigned_type’ was not declared in this scope
1885 | = typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type;
| ^~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1885:62: error: template argument 2 is invalid
1885 | = typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type;
| ^
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1896:68: error: ‘__type’ in ‘class std::__make_unsigned_selector<wchar_t, false, true>’ does not name a type
1896 | = typename __make_unsigned_selector<wchar_t, false, true>::__type;
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1912:69: error: ‘__type’ in ‘class std::__make_unsigned_selector<char16_t, false, true>’ does not name a type
1912 | = typename __make_unsigned_selector<char16_t, false, true>::__type;
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1919:69: error: ‘__type’ in ‘class std::__make_unsigned_selector<char32_t, false, true>’ does not name a type
1919 | = typename __make_unsigned_selector<char32_t, false, true>::__type;
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits: In instantiation of ‘class std::__make_unsigned_selector<wchar_t, true, false>’:
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2014:13: required from ‘class std::__make_signed_selector<wchar_t, false, true>’
2014 | using __unsigned_type = typename __make_unsigned_selector<_Tp>::__type;
| ^~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2028:57: required from here
2028 | = typename __make_signed_selector<wchar_t, false, true>::__type;
| ^~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1842:13: error: no type named ‘__type’ in ‘struct std::__make_unsigned<wchar_t>’
1842 | using __unsigned_type
| ^~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1846:13: error: no type named ‘__type’ in ‘struct std::__make_unsigned<wchar_t>’
1846 | using __type
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2028:66: error: invalid combination of multiple type-specifiers
2028 | = typename __make_signed_selector<wchar_t, false, true>::__type;
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits: In instantiation of ‘class std::__make_unsigned_selector<char16_t, true, false>’:
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2014:13: required from ‘class std::__make_signed_selector<char16_t, false, true>’
2014 | using __unsigned_type = typename __make_unsigned_selector<_Tp>::__type;
| ^~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2044:58: required from here
2044 | = typename __make_signed_selector<char16_t, false, true>::__type;
| ^~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1842:13: error: no type named ‘__type’ in ‘struct std::__make_unsigned<char16_t>’
1842 | using __unsigned_type
| ^~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1846:13: error: no type named ‘__type’ in ‘struct std::__make_unsigned<char16_t>’
1846 | using __type
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2044:67: error: invalid combination of multiple type-specifiers
2044 | = typename __make_signed_selector<char16_t, false, true>::__type;
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits: In instantiation of ‘class std::__make_unsigned_selector<char32_t, true, false>’:
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2014:13: required from ‘class std::__make_signed_selector<char32_t, false, true>’
2014 | using __unsigned_type = typename __make_unsigned_selector<_Tp>::__type;
| ^~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2051:58: required from here
2051 | = typename __make_signed_selector<char32_t, false, true>::__type;
| ^~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1842:13: error: no type named ‘__type’ in ‘struct std::__make_unsigned<char32_t>’
1842 | using __unsigned_type
| ^~~~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:1846:13: error: no type named ‘__type’ in ‘struct std::__make_unsigned<char32_t>’
1846 | using __type
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2051:67: error: invalid combination of multiple type-specifiers
2051 | = typename __make_signed_selector<char32_t, false, true>::__type;
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2086:31: error: ‘std::size_t’ has not been declared
2086 | template<typename _Tp, std::size_t _Size>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2087:30: error: ‘_Size’ was not declared in this scope
2087 | struct remove_extent<_Tp[_Size]>
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2087:36: error: template argument 1 is invalid
2087 | struct remove_extent<_Tp[_Size]>
| ^
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2099:31: error: ‘std::size_t’ has not been declared
2099 | template<typename _Tp, std::size_t _Size>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2100:35: error: ‘_Size’ was not declared in this scope
2100 | struct remove_all_extents<_Tp[_Size]>
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2100:41: error: template argument 1 is invalid
2100 | struct remove_all_extents<_Tp[_Size]>
| ^
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2171:17: error: ‘std::size_t’ has not been declared
2171 | template<std::size_t _Len>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2176:30: error: ‘_Len’ was not declared in this scope
2176 | unsigned char __data[_Len];
| ^~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2194:17: error: ‘std::size_t’ has not been declared
2194 | template<std::size_t _Len, std::size_t _Align =
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2194:35: error: ‘std::size_t’ has not been declared
2194 | template<std::size_t _Len, std::size_t _Align =
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2195:55: error: ‘_Len’ was not declared in this scope
2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2195:59: error: template argument 1 is invalid
2195 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2202:30: error: ‘_Len’ was not declared in this scope
2202 | unsigned char __data[_Len];
| ^~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2203:44: error: ‘_Align’ was not declared in this scope
2203 | struct __attribute__((__aligned__((_Align)))) { } __align;
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2210:20: error: ‘size_t’ does not name a type
2210 | static const size_t _S_alignment = 0;
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2210:20: note: ‘size_t’ is defined in header ‘<cstddef>’; this is probably fixable by adding ‘#include <cstddef>’
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2211:20: error: ‘size_t’ does not name a type
2211 | static const size_t _S_size = 0;
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2211:20: note: ‘size_t’ is defined in header ‘<cstddef>’; this is probably fixable by adding ‘#include <cstddef>’
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2217:20: error: ‘size_t’ does not name a type
2217 | static const size_t _S_alignment =
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2217:20: note: ‘size_t’ is defined in header ‘<cstddef>’; this is probably fixable by adding ‘#include <cstddef>’
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2220:20: error: ‘size_t’ does not name a type
2220 | static const size_t _S_size =
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2220:20: note: ‘size_t’ is defined in header ‘<cstddef>’; this is probably fixable by adding ‘#include <cstddef>’
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2240:13: error: ‘size_t’ has not been declared
2240 | template <size_t _Len, typename... _Types>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2249:20: error: ‘size_t’ does not name a type
2249 | static const size_t _S_len = _Len > __strictest::_S_size
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2249:20: note: ‘size_t’ is defined in header ‘<cstddef>’; this is probably fixable by adding ‘#include <cstddef>’
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2253:20: error: ‘size_t’ does not name a type
2253 | static const size_t alignment_value = __strictest::_S_alignment;
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2253:20: note: ‘size_t’ is defined in header ‘<cstddef>’; this is probably fixable by adding ‘#include <cstddef>’
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2255:45: error: ‘_S_len’ was not declared in this scope
2255 | using type = typename aligned_storage<_S_len, alignment_value>::type;
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2255:53: error: ‘alignment_value’ was not declared in this scope; did you mean ‘alignment_of’?
2255 | using type = typename aligned_storage<_S_len, alignment_value>::type;
| ^~~~~~~~~~~~~~~
| alignment_of
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2255:68: error: template argument 1 is invalid
2255 | using type = typename aligned_storage<_S_len, alignment_value>::type;
| ^
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2255:68: error: template argument 2 is invalid
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2258:13: error: ‘size_t’ has not been declared
2258 | template <size_t _Len, typename... _Types>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2259:11: error: ‘size_t’ does not name a type
2259 | const size_t aligned_union<_Len, _Types...>::alignment_value;
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2259:11: note: ‘size_t’ is defined in header ‘<cstddef>’; this is probably fixable by adding ‘#include <cstddef>’
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2273:26: error: ‘size_t’ has not been declared
2273 | template<typename _Up, size_t _Nm>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2274:33: error: ‘_Nm’ was not declared in this scope
2274 | struct __decay_selector<_Up[_Nm]>
| ^~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2274:37: error: template argument 1 is invalid
2274 | struct __decay_selector<_Up[_Nm]>
| ^
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2828:26: error: ‘size_t’ has not been declared
2828 | template<typename _Tp, size_t _Nm>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2832:21: error: ‘_Nm’ was not declared in this scope
2832 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2832:24: error: ‘template<class _Tp, <declaration error> > std::__enable_if_t<((bool)std::__is_swappable<_Tp>::value)> std::swap’ conflicts with a previous declaration
2832 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2824:5: note: previous declaration ‘std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&)’
2824 | swap(_Tp&, _Tp&)
| ^~~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2832:16: error: ‘__a’ was not declared in this scope
2832 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2832:21: error: ‘_Nm’ was not declared in this scope
2832 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2832:33: error: ‘__b’ was not declared in this scope
2832 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2832:38: error: ‘_Nm’ was not declared in this scope
2832 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^~~
/nix/gcc/include/c++/14.2.1.20250322/type_traits:2832:43: error: expected ‘;’ before ‘noexcept’
2832 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^
| ;
2833 | noexcept(__is_nothrow_swappable<_Tp>::value);
| ~~~~~~~~
In file included from /nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:61:
/nix/gcc/include/c++/14.2.1.20250322/bits/move.h:242:26: error: ‘size_t’ has not been declared
242 | template<typename _Tp, size_t _Nm>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/move.h:250:21: error: ‘_Nm’ was not declared in this scope
250 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^~~
/nix/gcc/include/c++/14.2.1.20250322/bits/move.h:250:24: error: ‘template<class _Tp, <declaration error> > typename std::enable_if<std::__is_swappable<_Tp>::value, void>::type std::swap’ conflicts with a previous declaration
250 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^
/nix/gcc/include/c++/14.2.1.20250322/bits/move.h:226:5: note: previous declaration ‘std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&)’
226 | swap(_Tp& __a, _Tp& __b)
| ^~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/move.h:250:16: error: ‘__a’ was not declared in this scope
250 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^~~
/nix/gcc/include/c++/14.2.1.20250322/bits/move.h:250:21: error: ‘_Nm’ was not declared in this scope
250 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^~~
/nix/gcc/include/c++/14.2.1.20250322/bits/move.h:250:33: error: ‘__b’ was not declared in this scope
250 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^~~
/nix/gcc/include/c++/14.2.1.20250322/bits/move.h:250:38: error: ‘_Nm’ was not declared in this scope
250 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^~~
/nix/gcc/include/c++/14.2.1.20250322/bits/move.h:250:43: error: expected ‘;’ before ‘noexcept’
250 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^
| ;
In file included from /nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:62:
/nix/gcc/include/c++/14.2.1.20250322/bits/utility.h:58:12: error: ‘size_t’ has not been declared
58 | size_t = tuple_size<_Tp>::value>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/utility.h:62:56: note: invalid template non-type parameter
62 | struct tuple_size<const __enable_if_has_tuple_size<_Tp>>
| ^~~
/nix/gcc/include/c++/14.2.1.20250322/bits/utility.h:62:59: error: template argument 1 is invalid
62 | struct tuple_size<const __enable_if_has_tuple_size<_Tp>>
| ^~
/nix/gcc/include/c++/14.2.1.20250322/bits/utility.h:66:59: note: invalid template non-type parameter
66 | struct tuple_size<volatile __enable_if_has_tuple_size<_Tp>>
| ^~~
/nix/gcc/include/c++/14.2.1.20250322/bits/utility.h:66:62: error: template argument 1 is invalid
66 | struct tuple_size<volatile __enable_if_has_tuple_size<_Tp>>
| ^~
/nix/gcc/include/c++/14.2.1.20250322/bits/utility.h:70:65: note: invalid template non-type parameter
70 | struct tuple_size<const volatile __enable_if_has_tuple_size<_Tp>>
| ^~~
/nix/gcc/include/c++/14.2.1.20250322/bits/utility.h:70:68: error: template argument 1 is invalid
70 | struct tuple_size<const volatile __enable_if_has_tuple_size<_Tp>>
| ^~
/nix/gcc/include/c++/14.2.1.20250322/bits/utility.h:79:12: error: ‘size_t’ has not been declared
79 | template<size_t __i, typename _Tp>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/utility.h:80:12: error: no default argument for ‘_Tp’
80 | struct tuple_element;
| ^~~~~~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/utility.h:83:12: error: ‘size_t’ has not been declared
83 | template<size_t __i, typename _Tp>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/utility.h:84:54: error: ‘__i’ was not declared in this scope
84 | using __tuple_element_t = typename tuple_element<__i, _Tp>::type;
| ^~~
/nix/gcc/include/c++/14.2.1.20250322/bits/utility.h:84:62: error: template argument 1 is invalid
84 | using __tuple_element_t = typename tuple_element<__i, _Tp>::type;
| ^
/nix/gcc/include/c++/14.2.1.20250322/bits/utility.h:86:12: error: ‘size_t’ has not been declared
86 | template<size_t __i, typename _Tp>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/utility.h:87:26: error: ‘__i’ was not declared in this scope
87 | struct tuple_element<__i, const _Tp>
| ^~~
/nix/gcc/include/c++/14.2.1.20250322/bits/utility.h:87:40: error: template argument 1 is invalid
87 | struct tuple_element<__i, const _Tp>
| ^
/nix/gcc/include/c++/14.2.1.20250322/bits/utility.h:92:12: error: ‘size_t’ has not been declared
92 | template<size_t __i, typename _Tp>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/utility.h:93:26: error: ‘__i’ was not declared in this scope
93 | struct tuple_element<__i, volatile _Tp>
| ^~~
/nix/gcc/include/c++/14.2.1.20250322/bits/utility.h:93:43: error: template argument 1 is invalid
93 | struct tuple_element<__i, volatile _Tp>
| ^
/nix/gcc/include/c++/14.2.1.20250322/bits/utility.h:98:12: error: ‘size_t’ has not been declared
98 | template<size_t __i, typename _Tp>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/utility.h:99:26: error: ‘__i’ was not declared in this scope
99 | struct tuple_element<__i, const volatile _Tp>
| ^~~
/nix/gcc/include/c++/14.2.1.20250322/bits/utility.h:99:49: error: template argument 1 is invalid
99 | struct tuple_element<__i, const volatile _Tp>
| ^
/nix/gcc/include/c++/14.2.1.20250322/bits/utility.h:140:12: error: ‘size_t’ has not been declared
140 | template<size_t... _Indexes> struct _Index_tuple { };
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/utility.h:143:12: error: ‘size_t’ has not been declared
143 | template<size_t _Num>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/utility.h:154:50: error: ‘_Num’ was not declared in this scope
154 | using __type = _Index_tuple<__integer_pack(_Num)...>;
| ^~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/utility.h:154:55: error: expected parameter pack before ‘...’
154 | using __type = _Index_tuple<__integer_pack(_Num)...>;
| ^~~
/nix/gcc/include/c++/14.2.1.20250322/bits/utility.h:154:58: error: template argument 1 is invalid
154 | using __type = _Index_tuple<__integer_pack(_Num)...>;
| ^
/nix/gcc/include/c++/14.2.1.20250322/bits/utility.h:235:12: error: ‘size_t’ has not been declared
235 | template<size_t _Np, typename... _Types>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/utility.h:237:40: error: ‘_Np’ was not declared in this scope
237 | { using type = __type_pack_element<_Np, _Types...>; };
| ^~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:98:26: error: ‘size_t’ has not been declared
98 | template<typename _Tp, size_t _Nm>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:101:12: error: ‘size_t’ has not been declared
101 | template<size_t...>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:104:12: error: ‘size_t’ has not been declared
104 | template<size_t _Int, class _Tp1, class _Tp2>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:105:38: error: ‘_Int’ was not declared in this scope
105 | constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&
| ^~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:105:59: error: template argument 1 is invalid
105 | constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&
| ^~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:108:12: error: ‘size_t’ has not been declared
108 | template<size_t _Int, class _Tp1, class _Tp2>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:109:38: error: ‘_Int’ was not declared in this scope
109 | constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&&
| ^~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:109:59: error: template argument 1 is invalid
109 | constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&&
| ^~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:112:12: error: ‘size_t’ has not been declared
112 | template<size_t _Int, class _Tp1, class _Tp2>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:113:44: error: ‘_Int’ was not declared in this scope
113 | constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&
| ^~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:113:65: error: template argument 1 is invalid
113 | constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&
| ^~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:116:12: error: ‘size_t’ has not been declared
116 | template<size_t _Int, class _Tp1, class _Tp2>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:117:44: error: ‘_Int’ was not declared in this scope
117 | constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&&
| ^~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:117:65: error: template argument 1 is invalid
117 | constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&&
| ^~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:120:12: error: ‘size_t’ has not been declared
120 | template<size_t __i, typename... _Elements>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:121:15: error: ‘__tuple_element_t’ does not name a type; did you mean ‘tuple_element’?
121 | constexpr __tuple_element_t<__i, tuple<_Elements...>>&
| ^~~~~~~~~~~~~~~~~
| tuple_element
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:124:12: error: ‘size_t’ has not been declared
124 | template<size_t __i, typename... _Elements>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:125:21: error: ‘__tuple_element_t’ does not name a type; did you mean ‘tuple_element’?
125 | constexpr const __tuple_element_t<__i, tuple<_Elements...>>&
| ^~~~~~~~~~~~~~~~~
| tuple_element
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:128:12: error: ‘size_t’ has not been declared
128 | template<size_t __i, typename... _Elements>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:129:15: error: ‘__tuple_element_t’ does not name a type; did you mean ‘tuple_element’?
129 | constexpr __tuple_element_t<__i, tuple<_Elements...>>&&
| ^~~~~~~~~~~~~~~~~
| tuple_element
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:132:12: error: ‘size_t’ has not been declared
132 | template<size_t __i, typename... _Elements>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:133:21: error: ‘__tuple_element_t’ does not name a type; did you mean ‘tuple_element’?
133 | constexpr const __tuple_element_t<__i, tuple<_Elements...>>&&
| ^~~~~~~~~~~~~~~~~
| tuple_element
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:136:12: error: ‘size_t’ has not been declared
136 | template<size_t _Int, typename _Tp, size_t _Nm>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:136:39: error: ‘size_t’ has not been declared
136 | template<size_t _Int, typename _Tp, size_t _Nm>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:138:20: error: ‘_Nm’ was not declared in this scope
138 | get(array<_Tp, _Nm>&) noexcept;
| ^~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:138:23: error: template argument 2 is invalid
138 | get(array<_Tp, _Nm>&) noexcept;
| ^
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:140:12: error: ‘size_t’ has not been declared
140 | template<size_t _Int, typename _Tp, size_t _Nm>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:140:39: error: ‘size_t’ has not been declared
140 | template<size_t _Int, typename _Tp, size_t _Nm>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:142:20: error: ‘_Nm’ was not declared in this scope
142 | get(array<_Tp, _Nm>&&) noexcept;
| ^~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:142:23: error: template argument 2 is invalid
142 | get(array<_Tp, _Nm>&&) noexcept;
| ^
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:144:12: error: ‘size_t’ has not been declared
144 | template<size_t _Int, typename _Tp, size_t _Nm>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:144:39: error: ‘size_t’ has not been declared
144 | template<size_t _Int, typename _Tp, size_t _Nm>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:146:26: error: ‘_Nm’ was not declared in this scope
146 | get(const array<_Tp, _Nm>&) noexcept;
| ^~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:146:29: error: template argument 2 is invalid
146 | get(const array<_Tp, _Nm>&) noexcept;
| ^
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:148:12: error: ‘size_t’ has not been declared
148 | template<size_t _Int, typename _Tp, size_t _Nm>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:148:39: error: ‘size_t’ has not been declared
148 | template<size_t _Int, typename _Tp, size_t _Nm>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:150:26: error: ‘_Nm’ was not declared in this scope
150 | get(const array<_Tp, _Nm>&&) noexcept;
| ^~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:150:29: error: template argument 2 is invalid
150 | get(const array<_Tp, _Nm>&&) noexcept;
| ^
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:332:36: error: ‘size_t’ has not been declared
332 | template<typename... _Args1, size_t... _Indexes1,
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:333:36: error: ‘size_t’ has not been declared
333 | typename... _Args2, size_t... _Indexes2>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:336:27: error: ‘_Indexes1’ was not declared in this scope
336 | _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:336:36: error: expected parameter pack before ‘...’
336 | _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
| ^~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:336:39: error: template argument 1 is invalid
336 | _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
| ^
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:336:55: error: ‘_Indexes2’ was not declared in this scope
336 | _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:336:64: error: expected parameter pack before ‘...’
336 | _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
| ^~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:336:67: error: template argument 1 is invalid
336 | _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
| ^
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:1160:32: error: ‘size_t’ was not declared in this scope
1160 | : public integral_constant<size_t, 2> { };
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:63:1: note: ‘size_t’ is defined in header ‘<cstddef>’; this is probably fixable by adding ‘#include <cstddef>’
62 | # include <bits/utility.h> // for std::tuple_element, std::tuple_size
+++ |+#include <cstddef>
63 | #endif
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:1160:41: error: template argument 1 is invalid
1160 | : public integral_constant<size_t, 2> { };
| ^
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:1160:41: note: invalid template non-type parameter
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:1174:12: error: ‘size_t’ has not been declared
1174 | template<size_t __i, typename... _Types>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:1175:26: error: ‘__i’ was not declared in this scope
1175 | struct tuple_element<__i, tuple<_Types...>>;
| ^~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:1175:46: error: template argument 1 is invalid
1175 | struct tuple_element<__i, tuple<_Types...>>;
| ^~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:1192:12: error: ‘size_t’ has not been declared
1192 | template<size_t _Int>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:1248:12: error: ‘size_t’ has not been declared
1248 | template<size_t _Int, class _Tp1, class _Tp2>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:1249:38: error: ‘_Int’ was not declared in this scope
1249 | constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&
| ^~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:1249:59: error: template argument 1 is invalid
1249 | constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&
| ^~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h: In function ‘constexpr int& std::get(pair<_Tp1, _Tp2>&)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:1251:25: error: ‘_Int’ was not declared in this scope
1251 | { return __pair_get<_Int>::__get(__in); }
| ^~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:1251:29: error: template argument 1 is invalid
1251 | { return __pair_get<_Int>::__get(__in); }
| ^
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h: At global scope:
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:1253:12: error: ‘size_t’ has not been declared
1253 | template<size_t _Int, class _Tp1, class _Tp2>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:1254:38: error: ‘_Int’ was not declared in this scope
1254 | constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&&
| ^~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:1254:59: error: template argument 1 is invalid
1254 | constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&&
| ^~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h: In function ‘constexpr int&& std::get(pair<_Tp1, _Tp2>&&)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:1256:25: error: ‘_Int’ was not declared in this scope
1256 | { return __pair_get<_Int>::__move_get(std::move(__in)); }
| ^~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:1256:29: error: template argument 1 is invalid
1256 | { return __pair_get<_Int>::__move_get(std::move(__in)); }
| ^
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h: At global scope:
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:1258:12: error: ‘size_t’ has not been declared
1258 | template<size_t _Int, class _Tp1, class _Tp2>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:1259:44: error: ‘_Int’ was not declared in this scope
1259 | constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&
| ^~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:1259:65: error: template argument 1 is invalid
1259 | constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&
| ^~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h: In function ‘constexpr const int& std::get(const pair<_Tp1, _Tp2>&)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:1261:25: error: ‘_Int’ was not declared in this scope
1261 | { return __pair_get<_Int>::__const_get(__in); }
| ^~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:1261:29: error: template argument 1 is invalid
1261 | { return __pair_get<_Int>::__const_get(__in); }
| ^
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h: At global scope:
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:1263:12: error: ‘size_t’ has not been declared
1263 | template<size_t _Int, class _Tp1, class _Tp2>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:1264:44: error: ‘_Int’ was not declared in this scope
1264 | constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&&
| ^~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:1264:65: error: template argument 1 is invalid
1264 | constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&&
| ^~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h: In function ‘constexpr const int&& std::get(const pair<_Tp1, _Tp2>&&)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:1266:25: error: ‘_Int’ was not declared in this scope
1266 | { return __pair_get<_Int>::__const_move_get(std::move(__in)); }
| ^~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_pair.h:1266:29: error: template argument 1 is invalid
1266 | { return __pair_get<_Int>::__const_move_get(std::move(__in)); }
| ^
In file included from /nix/gcc/include/c++/14.2.1.20250322/bits/stl_algobase.h:65:
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_iterator_base_types.h: At global scope:
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_iterator_base_types.h:125:67: error: ‘ptrdiff_t’ does not name a type
125 | template<typename _Category, typename _Tp, typename _Distance = ptrdiff_t,
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_iterator_base_types.h:1:1: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; this is probably fixable by adding ‘#include <cstddef>’
+++ |+#include <cstddef>
1 | // Types used in iterator implementation -*- C++ -*-
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_iterator_base_types.h:214:15: error: ‘ptrdiff_t’ does not name a type
214 | typedef ptrdiff_t difference_type;
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_iterator_base_types.h:214:15: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; this is probably fixable by adding ‘#include <cstddef>’
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_iterator_base_types.h:225:15: error: ‘ptrdiff_t’ does not name a type
225 | typedef ptrdiff_t difference_type;
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_iterator_base_types.h:225:15: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; this is probably fixable by adding ‘#include <cstddef>’
In file included from /nix/gcc/include/c++/14.2.1.20250322/bits/stl_algobase.h:66:
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_iterator_base_funcs.h:112:5: error: ‘ptrdiff_t’ does not name a type
112 | ptrdiff_t
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_iterator_base_funcs.h:66:1: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; this is probably fixable by adding ‘#include <cstddef>’
65 | #include <debug/assertions.h>
+++ |+#include <cstddef>
66 | #include <bits/stl_iterator_base_types.h>
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_iterator_base_funcs.h:118:5: error: ‘ptrdiff_t’ does not name a type
118 | ptrdiff_t
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_iterator_base_funcs.h:118:5: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; this is probably fixable by adding ‘#include <cstddef>’
In file included from /nix/gcc/include/c++/14.2.1.20250322/bits/stl_iterator.h:67,
from /nix/gcc/include/c++/14.2.1.20250322/bits/stl_algobase.h:67:
/nix/gcc/include/c++/14.2.1.20250322/bits/ptr_traits.h:156:47: error: ‘ptrdiff_t’ was not declared in this scope
156 | using difference_type = __detected_or_t<ptrdiff_t, __diff_t, _Ptr>;
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/ptr_traits.h:1:1: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; this is probably fixable by adding ‘#include <cstddef>’
+++ |+#include <cstddef>
1 | // Pointer Traits -*- C++ -*-
/nix/gcc/include/c++/14.2.1.20250322/bits/ptr_traits.h:156:72: error: template argument 1 is invalid
156 | using difference_type = __detected_or_t<ptrdiff_t, __diff_t, _Ptr>;
| ^
/nix/gcc/include/c++/14.2.1.20250322/bits/ptr_traits.h:194:15: error: ‘ptrdiff_t’ does not name a type
194 | typedef ptrdiff_t difference_type;
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/ptr_traits.h:194:15: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; this is probably fixable by adding ‘#include <cstddef>’
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_algobase.h:93:56: error: ‘size_t’ has not been declared
93 | __memcmp(const _Tp* __first1, const _Up* __first2, size_t __num)
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_algobase.h: In static member function ‘static _Up* std::__copy_move<_IsMove, true, std::random_access_iterator_tag>::__copy_m(_Tp*, _Tp*, _Up*)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_algobase.h:450:17: error: ‘ptrdiff_t’ does not name a type
450 | const ptrdiff_t _Num = __last - __first;
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_algobase.h:72:1: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; this is probably fixable by adding ‘#include <cstddef>’
71 | #include <bits/predefined_ops.h>
+++ |+#include <cstddef>
72 | #if __cplusplus >= 201103L
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_algobase.h:451:32: error: ‘_Num’ was not declared in this scope
451 | if (__builtin_expect(_Num > 1, true))
| ^~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_algobase.h:456:29: error: ‘_Num’ was not declared in this scope
456 | return __result + _Num;
| ^~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_algobase.h: In static member function ‘static _Up* std::__copy_move_backward<_IsMove, true, std::random_access_iterator_tag>::__copy_move_b(_Tp*, _Tp*, _Up*)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_algobase.h:764:17: error: ‘ptrdiff_t’ does not name a type
764 | const ptrdiff_t _Num = __last - __first;
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_algobase.h:764:17: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; this is probably fixable by adding ‘#include <cstddef>’
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_algobase.h:765:32: error: ‘_Num’ was not declared in this scope
765 | if (__builtin_expect(_Num > 1, true))
| ^~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_algobase.h:770:29: error: ‘_Num’ was not declared in this scope
770 | return __result - _Num;
| ^~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_algobase.h: In function ‘typename __gnu_cxx::__enable_if<std::__is_byte<_Tp>::__value, void>::__type std::__fill_a1(_Tp*, _Tp*, const _Tp&)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_algobase.h:971:24: error: expected initializer before ‘__len’
971 | if (const size_t __len = __last - __first)
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_algobase.h:971:23: error: expected ‘)’ before ‘__len’
971 | if (const size_t __len = __last - __first)
| ~ ^~~~~~
| )
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_algobase.h:972:70: error: ‘__len’ was not declared in this scope
972 | __builtin_memset(__first, static_cast<unsigned char>(__tmp), __len);
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_algobase.h: In static member function ‘static bool std::__equal<true>::equal(const _Tp*, const _Tp*, const _Tp*)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_algobase.h:1210:28: error: expected initializer before ‘__len’
1210 | if (const size_t __len = (__last1 - __first1))
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_algobase.h:1210:28: error: expected ‘)’ before ‘__len’
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_algobase.h:1210:14: note: to match this ‘(’
1210 | if (const size_t __len = (__last1 - __first1))
| ^
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_algobase.h:1211:55: error: ‘__len’ was not declared in this scope
1211 | return !std::__memcmp(__first1, __first2, __len);
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_algobase.h: At global scope:
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_algobase.h:1386:16: error: ‘ptrdiff_t’ does not name a type
1386 | static ptrdiff_t
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_algobase.h:1386:16: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; this is probably fixable by adding ‘#include <cstddef>’
In file included from /nix/gcc/include/c++/14.2.1.20250322/bits/new_allocator.h:34,
from /nix/gcc/include/c++/14.2.1.20250322/x86_64-unknown-linux-gnu/bits/c++allocator.h:33,
from /nix/gcc/include/c++/14.2.1.20250322/bits/allocator.h:46,
from /nix/gcc/include/c++/14.2.1.20250322/vector:63:
/nix/gcc/include/c++/14.2.1.20250322/new:131:26: error: declaration of ‘operator new’ as non-function
131 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/new:131:44: error: ‘size_t’ is not a member of ‘std’
131 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/new:132:41: error: attributes after parenthesized initializer ignored [-fpermissive]
132 | __attribute__((__externally_visible__));
| ^
/nix/gcc/include/c++/14.2.1.20250322/new:133:26: error: declaration of ‘operator new []’ as non-function
133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/new:133:46: error: ‘size_t’ is not a member of ‘std’
133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/new:134:41: error: attributes after parenthesized initializer ignored [-fpermissive]
134 | __attribute__((__externally_visible__));
| ^
/nix/gcc/include/c++/14.2.1.20250322/new:145:26: error: declaration of ‘operator new’ as non-function
145 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/new:145:44: error: ‘size_t’ is not a member of ‘std’
145 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/new:145:52: error: expected primary-expression before ‘const’
145 | _GLIBCXX_NODISCARD void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/new:147:26: error: declaration of ‘operator new []’ as non-function
147 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/new:147:46: error: ‘size_t’ is not a member of ‘std’
147 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/new:147:54: error: expected primary-expression before ‘const’
147 | _GLIBCXX_NODISCARD void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
| ^~~~~
/nix/gcc/include/c++/14.2.1.20250322/new:179:33: error: declaration of ‘operator new’ as non-function
179 | _GLIBCXX_NODISCARD inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/new:179:51: error: ‘size_t’ is not a member of ‘std’
179 | _GLIBCXX_NODISCARD inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/new:179:59: error: expected primary-expression before ‘void’
179 | _GLIBCXX_NODISCARD inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
| ^~~~
/nix/gcc/include/c++/14.2.1.20250322/new:181:33: error: declaration of ‘operator new []’ as non-function
181 | _GLIBCXX_NODISCARD inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/new:181:53: error: ‘size_t’ is not a member of ‘std’
181 | _GLIBCXX_NODISCARD inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/new:181:61: error: expected primary-expression before ‘void’
181 | _GLIBCXX_NODISCARD inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
| ^~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/new_allocator.h:67:20: error: ‘size_t’ in namespace ‘std’ does not name a type
67 | typedef std::size_t size_type;
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/new_allocator.h:68:20: error: ‘ptrdiff_t’ in namespace ‘std’ does not name a type
68 | typedef std::ptrdiff_t difference_type;
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/new_allocator.h:126:16: error: ‘size_type’ has not been declared
126 | allocate(size_type __n, const void* = static_cast<const void*>(0))
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/new_allocator.h:156:28: error: ‘size_type’ has not been declared
156 | deallocate(_Tp* __p, size_type __n __attribute__ ((__unused__)))
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/new_allocator.h:181:7: error: ‘size_type’ does not name a type; did you mean ‘true_type’?
181 | size_type
| ^~~~~~~~~
| true_type
/nix/gcc/include/c++/14.2.1.20250322/bits/new_allocator.h:229:26: error: ‘size_type’ does not name a type; did you mean ‘true_type’?
229 | _GLIBCXX_CONSTEXPR size_type
| ^~~~~~~~~
| true_type
/nix/gcc/include/c++/14.2.1.20250322/bits/new_allocator.h: In member function ‘_Tp* std::__new_allocator<_Tp>::allocate(int, const void*)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/new_allocator.h:138:29: error: ‘size_t’ is not a member of ‘std’
138 | if (__n > (std::size_t(-1) / sizeof(_Tp)))
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/allocator.h: At global scope:
/nix/gcc/include/c++/14.2.1.20250322/bits/allocator.h:77:15: error: ‘size_t’ does not name a type
77 | typedef size_t size_type;
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/allocator.h:48:1: note: ‘size_t’ is defined in header ‘<cstddef>’; this is probably fixable by adding ‘#include <cstddef>’
47 | #include <bits/memoryfwd.h>
+++ |+#include <cstddef>
48 | #if __cplusplus >= 201103L
/nix/gcc/include/c++/14.2.1.20250322/bits/allocator.h:78:15: error: ‘ptrdiff_t’ does not name a type
78 | typedef ptrdiff_t difference_type;
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/allocator.h:78:15: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; this is probably fixable by adding ‘#include <cstddef>’
/nix/gcc/include/c++/14.2.1.20250322/bits/allocator.h:132:15: error: ‘size_t’ does not name a type
132 | typedef size_t size_type;
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/allocator.h:132:15: note: ‘size_t’ is defined in header ‘<cstddef>’; this is probably fixable by adding ‘#include <cstddef>’
/nix/gcc/include/c++/14.2.1.20250322/bits/allocator.h:133:15: error: ‘ptrdiff_t’ does not name a type
133 | typedef ptrdiff_t difference_type;
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/allocator.h:133:15: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; this is probably fixable by adding ‘#include <cstddef>’
In file included from /nix/gcc/include/c++/14.2.1.20250322/ext/alloc_traits.h:34,
from /nix/gcc/include/c++/14.2.1.20250322/bits/stl_uninitialized.h:64,
from /nix/gcc/include/c++/14.2.1.20250322/vector:65:
/nix/gcc/include/c++/14.2.1.20250322/bits/alloc_traits.h:482:36: error: ‘ptrdiff_t’ in namespace ‘std’ does not name a type
482 | using difference_type = std::ptrdiff_t;
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/alloc_traits.h:485:30: error: ‘size_t’ in namespace ‘std’ does not name a type
485 | using size_type = std::size_t;
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/alloc_traits.h:514:37: error: ‘size_type’ has not been declared
514 | allocate(allocator_type& __a, size_type __n)
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/alloc_traits.h:529:37: error: ‘size_type’ has not been declared
529 | allocate(allocator_type& __a, size_type __n,
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/alloc_traits.h:549:52: error: ‘size_type’ has not been declared
549 | deallocate(allocator_type& __a, pointer __p, size_type __n)
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/alloc_traits.h:609:35: error: ‘size_type’ does not name a type; did you mean ‘true_type’?
609 | static _GLIBCXX20_CONSTEXPR size_type
| ^~~~~~~~~
| true_type
/nix/gcc/include/c++/14.2.1.20250322/bits/alloc_traits.h:659:36: error: ‘ptrdiff_t’ in namespace ‘std’ does not name a type
659 | using difference_type = std::ptrdiff_t;
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/alloc_traits.h:662:30: error: ‘size_t’ in namespace ‘std’ does not name a type
662 | using size_type = std::size_t;
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/alloc_traits.h:684:33: error: ‘size_type’ has not been declared
684 | allocate(allocator_type&, size_type, const void* = nullptr) = delete;
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/alloc_traits.h:688:42: error: ‘size_type’ has not been declared
688 | deallocate(allocator_type&, void*, size_type) = delete;
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/alloc_traits.h:723:14: error: ‘size_type’ does not name a type; did you mean ‘true_type’?
723 | static size_type
| ^~~~~~~~~
| true_type
/nix/gcc/include/c++/14.2.1.20250322/bits/alloc_traits.h:894:58: error: ‘size_t’ was not declared in this scope
894 | decltype(std::declval<_Alloc&>().allocate(size_t{}))>>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/alloc_traits.h:1:1: note: ‘size_t’ is defined in header ‘<cstddef>’; this is probably fixable by adding ‘#include <cstddef>’
+++ |+#include <cstddef>
1 | // Allocator traits -*- C++ -*-
/nix/gcc/include/c++/14.2.1.20250322/bits/alloc_traits.h:894:58: error: ‘size_t’ was not declared in this scope
894 | decltype(std::declval<_Alloc&>().allocate(size_t{}))>>
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/alloc_traits.h:894:58: note: ‘size_t’ is defined in header ‘<cstddef>’; this is probably fixable by adding ‘#include <cstddef>’
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_uninitialized.h: In function ‘std::__enable_if_t<((bool)std::__is_bitwise_relocatable<_Tp>::value), _Tp*> std::__relocate_a_1(_Tp*, _Tp*, _Tp*, allocator<_T2>&)’:
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_uninitialized.h:1116:7: error: ‘ptrdiff_t’ was not declared in this scope
1116 | ptrdiff_t __count = __last - __first;
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_uninitialized.h:65:1: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; this is probably fixable by adding ‘#include <cstddef>’
64 | #include <ext/alloc_traits.h> // __alloc_traits
+++ |+#include <cstddef>
65 |
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_uninitialized.h:1117:11: error: ‘__count’ was not declared in this scope; did you mean ‘__count_if’?
1117 | if (__count > 0)
| ^~~~~~~
| __count_if
/nix/gcc/include/c++/14.2.1.20250322/bits/stl_uninitialized.h:1131:25: error: ‘__count’ was not declared in this scope; did you mean ‘__count_if’?
1131 | return __result + __count;
| ^~~~~~~
| __count_if
In file included from /nix/gcc/include/c++/14.2.1.20250322/bits/stl_vector.h:63,
from /nix/gcc/include/c++/14.2.1.20250322/vector:66:
/nix/gcc/include/c++/14.2.1.20250322/initializer_list: At global scope:
/nix/gcc/include/c++/14.2.1.20250322/initializer_list:51:15: error: ‘size_t’ does not name a type
51 | typedef size_t size_type;
| ^~~~~~
/nix/gcc/include/c++/14.2.1.20250322/initializer_list:1:1: note: ‘size_t’ is defined in header ‘<cstddef>’; this is probably fixable by adding ‘#include <cstddef>’
+++ |+#include <cstddef>
1 | // std::initializer_list support -*- C++ -*-
/nix/gcc/include/c++/14.2.1.20250322/initializer_list:57:7: error: ‘size_type’ does not name a type; did you mean ‘true_type’?
57 | size_type _M_len;
| ^~~~~~~~~
| true_type
/nix/gcc/include/c++/14.2.1.20250322/initializer_list:60:54: error: ‘size_type’ has not been declared
60 | constexpr initializer_list(const_iterator __a, size_type __l)
| ^~~~~~~~~
/nix/gcc/include/c++/14.2.1.20250322/initializer_list:68:17: error: ‘size_type’ does not name a type; did you mean ‘true_type’?
68 | constexpr size_type
| ^~~~~~~~~
| true_type
/nix/gcc/include/c++/14.2.1.20250322/initializer_list:45:11: fatal error: definition of ‘class std::initializer_list<_E>’ does not match ‘#include <initializer_list>’
45 | class initializer_list
| ^~~~~~~~~~~~~~~~
compilation terminated.