$ clang++10 a.cc
In file included from a.cc:2:
In file included from /usr/include/vulkan/vulkan.hpp:37:
In file included from /usr/include/c++/v1/algorithm:643:
/usr/include/c++/v1/memory:1549:22: error: type
'std::__1::allocator_traits<unsigned int *>::allocator_type'
(aka 'unsigned int *') cannot be used prior to '::' because it has no
members
typedef typename allocator_type::value_type value_type;
^
/usr/include/c++/v1/vector:331:22: note: in instantiation of template class
'std::__1::allocator_traits<unsigned int *>' requested here
typedef typename __alloc_traits::size_type size_type;
^
/usr/include/c++/v1/vector:470:15: note: in instantiation of template class
'std::__1::__vector_base<vk::DisplayPropertiesKHR, unsigned int *>'
requested here
: private __vector_base<_Tp, _Allocator>
^
a.cc:8:9: note: in instantiation of template class
'std::__1::vector<vk::DisplayPropertiesKHR, unsigned int *>' requested
here
gpu.getDisplayPropertiesKHR(&display_count, nullptr);
^
In file included from a.cc:2:
In file included from /usr/include/vulkan/vulkan.hpp:56:
/usr/include/c++/v1/vector:480:30: error: 'reference' is a protected member of
'std::__1::__vector_base<vk::DisplayPropertiesKHR, unsigned int *>'
typedef typename __base::reference reference;
^
a.cc:8:9: note: in instantiation of template class
'std::__1::vector<vk::DisplayPropertiesKHR, unsigned int *>' requested
here
gpu.getDisplayPropertiesKHR(&display_count, nullptr);
^
/usr/include/c++/v1/vector:334:54: note: declared protected here
typedef value_type& reference;
^
/usr/include/c++/v1/vector:481:30: error: 'const_reference' is a protected
member of 'std::__1::__vector_base<vk::DisplayPropertiesKHR, unsigned int
*>'
typedef typename __base::const_reference const_reference;
^
/usr/include/c++/v1/vector:335:54: note: declared protected here
typedef const value_type& const_reference;
^
/usr/include/c++/v1/vector:483:30: error: 'difference_type' is a protected
member of 'std::__1::__vector_base<vk::DisplayPropertiesKHR, unsigned int
*>'
typedef typename __base::difference_type difference_type;
^
/usr/include/c++/v1/vector:336:54: note: declared protected here
typedef typename __alloc_traits::difference_type difference_type;
^
/usr/include/c++/v1/vector:484:30: error: 'pointer' is a protected member of
'std::__1::__vector_base<vk::DisplayPropertiesKHR, unsigned int *>'
typedef typename __base::pointer pointer;
^
/usr/include/c++/v1/vector:337:54: note: declared protected here
typedef typename __alloc_traits::pointer pointer;
^
/usr/include/c++/v1/vector:485:30: error: 'const_pointer' is a protected member
of 'std::__1::__vector_base<vk::DisplayPropertiesKHR, unsigned int *>'
typedef typename __base::const_pointer const_pointer;
^
/usr/include/c++/v1/vector:338:54: note: declared protected here
typedef typename __alloc_traits::const_pointer const_pointer;
^
/usr/include/c++/v1/vector:491:37: error: type
'std::__1::vector<vk::DisplayPropertiesKHR, unsigned int
*>::allocator_type' (aka 'unsigned int *') cannot be used prior to '::'
because it has no members
static_assert((is_same<typename allocator_type::value_type, value_ty...
^
In file included from a.cc:2:
/usr/include/vulkan/vulkan.hpp:81999:38: error: member reference base type
'const nullptr_t' is not a structure or union
...= static_cast<Result>( d.vkGetPhysicalDeviceDisplayPropertiesKHR( m_phys...
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:8:9: note: in instantiation of function template specialization
'vk::PhysicalDevice::getDisplayPropertiesKHR<unsigned int *, nullptr_t>'
requested here
gpu.getDisplayPropertiesKHR(&display_count, nullptr);
^
In file included from a.cc:2:
/usr/include/vulkan/vulkan.hpp:82003:40: error: member reference base type
'const nullptr_t' is not a structure or union
...= static_cast<Result>( d.vkGetPhysicalDeviceDisplayPropertiesKHR( m_phys...
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from a.cc:2:
In file included from /usr/include/vulkan/vulkan.hpp:56:
/usr/include/c++/v1/vector:507:11: error: type
'std::__1::vector<vk::DisplayPropertiesKHR, unsigned int *>::__base' (aka
'__vector_base<vk::DisplayPropertiesKHR, unsigned int *>') is not a direct
or virtual base of 'std::__1::vector<vk::DisplayPropertiesKHR, unsigned
int *>'
: __base(__a)
^~~~~~
/usr/include/vulkan/vulkan.hpp:81994:49: note: in instantiation of member
function 'std::__1::vector<vk::DisplayPropertiesKHR, unsigned int
*>::vector' requested here
std::vector<DisplayPropertiesKHR,Allocator> properties( vectorAllocator );
^
a.cc:8:9: note: in instantiation of function template specialization
'vk::PhysicalDevice::getDisplayPropertiesKHR<unsigned int *, nullptr_t>'
requested here
gpu.getDisplayPropertiesKHR(&display_count, nullptr);
^
In file included from a.cc:2:
In file included from /usr/include/vulkan/vulkan.hpp:56:
/usr/include/c++/v1/vector:2024:39: error: no member named '__begin_' in
'std::__1::vector<vk::DisplayPropertiesKHR, unsigned int *>'
this->__destruct_at_end(this->__begin_ + __sz);
~~~~ ^
/usr/include/vulkan/vulkan.hpp:82002:20: note: in instantiation of member
function 'std::__1::vector<vk::DisplayPropertiesKHR, unsigned int
*>::resize' requested here
properties.resize( propertyCount );
^
a.cc:8:9: note: in instantiation of function template specialization
'vk::PhysicalDevice::getDisplayPropertiesKHR<unsigned int *, nullptr_t>'
requested here
gpu.getDisplayPropertiesKHR(&display_count, nullptr);
^
In file included from a.cc:2:
In file included from /usr/include/vulkan/vulkan.hpp:56:
/usr/include/c++/v1/vector:1087:38: error: no member named '__end_cap' in
'std::__1::vector<vk::DisplayPropertiesKHR, unsigned int *>'
if (static_cast<size_type>(this->__end_cap() - this->__end_) >= __n)
~~~~ ^
/usr/include/c++/v1/vector:2022:15: note: in instantiation of member function
'std::__1::vector<vk::DisplayPropertiesKHR, unsigned int *>::__append'
requested here
this->__append(__sz - __cs);
^
/usr/include/vulkan/vulkan.hpp:82002:20: note: in instantiation of member
function 'std::__1::vector<vk::DisplayPropertiesKHR, unsigned int
*>::resize' requested here
properties.resize( propertyCount );
^
a.cc:8:9: note: in instantiation of function template specialization
'vk::PhysicalDevice::getDisplayPropertiesKHR<unsigned int *, nullptr_t>'
requested here
gpu.getDisplayPropertiesKHR(&display_count, nullptr);
^
In file included from a.cc:2:
In file included from /usr/include/vulkan/vulkan.hpp:56:
/usr/include/c++/v1/vector:833:17: error: call to non-static member function
without an object argument
__base::__destruct_at_end(__new_last);
~~~~~~~~^~~~~~~~~~~~~~~~~
/usr/include/c++/v1/vector:2024:15: note: in instantiation of member function
'std::__1::vector<vk::DisplayPropertiesKHR, unsigned int
*>::__destruct_at_end' requested here
this->__destruct_at_end(this->__begin_ + __sz);
^
/usr/include/vulkan/vulkan.hpp:82002:20: note: in instantiation of member
function 'std::__1::vector<vk::DisplayPropertiesKHR, unsigned int
*>::resize' requested here
properties.resize( propertyCount );
^
a.cc:8:9: note: in instantiation of function template specialization
'vk::PhysicalDevice::getDisplayPropertiesKHR<unsigned int *, nullptr_t>'
requested here
gpu.getDisplayPropertiesKHR(&display_count, nullptr);
^
In file included from a.cc:2:
In file included from /usr/include/vulkan/vulkan.hpp:56:
/usr/include/c++/v1/vector:833:17: error: '__destruct_at_end' is a protected
member of 'std::__1::__vector_base<vk::DisplayPropertiesKHR, unsigned int
*>'
__base::__destruct_at_end(__new_last);
^
/usr/include/c++/v1/vector:375:10: note: declared protected here
void __destruct_at_end(pointer __new_last) _NOEXCEPT;
^
/usr/include/c++/v1/vector:698:43: error: no member named '__begin_' in
'std::__1::vector<vk::DisplayPropertiesKHR, unsigned int *>'
{return _VSTD::__to_address(this->__begin_);}
~~~~ ^
/usr/include/c++/v1/vector:891:39: note: in instantiation of member function
'std::__1::vector<vk::DisplayPropertiesKHR, unsigned int *>::data'
requested here
__annotate_contiguous_container(data(), data() + capacity(),
^
/usr/include/c++/v1/vector:834:9: note: in instantiation of member function
'std::__1::vector<vk::DisplayPropertiesKHR, unsigned int
*>::__annotate_shrink' requested here
__annotate_shrink(__old_size);
^
/usr/include/c++/v1/vector:2024:15: note: in instantiation of member function
'std::__1::vector<vk::DisplayPropertiesKHR, unsigned int
*>::__destruct_at_end' requested here
this->__destruct_at_end(this->__begin_ + __sz);
^
/usr/include/vulkan/vulkan.hpp:82002:20: note: in instantiation of member
function 'std::__1::vector<vk::DisplayPropertiesKHR, unsigned int
*>::resize' requested here
properties.resize( propertyCount );
^
a.cc:8:9: note: in instantiation of function template specialization
'vk::PhysicalDevice::getDisplayPropertiesKHR<unsigned int *, nullptr_t>'
requested here
gpu.getDisplayPropertiesKHR(&display_count, nullptr);
^
In file included from a.cc:2:
In file included from /usr/include/vulkan/vulkan.hpp:56:
/usr/include/c++/v1/vector:659:25: error: call to non-static member function
without an object argument
{return __base::capacity();}
~~~~~~~~^~~~~~~~
/usr/include/c++/v1/vector:891:56: note: in instantiation of member function
'std::__1::vector<vk::DisplayPropertiesKHR, unsigned int *>::capacity'
requested here
__annotate_contiguous_container(data(), data() + capacity(),
^
/usr/include/c++/v1/vector:834:9: note: in instantiation of member function
'std::__1::vector<vk::DisplayPropertiesKHR, unsigned int
*>::__annotate_shrink' requested here
__annotate_shrink(__old_size);
^
/usr/include/c++/v1/vector:2024:15: note: in instantiation of member function
'std::__1::vector<vk::DisplayPropertiesKHR, unsigned int
*>::__destruct_at_end' requested here
this->__destruct_at_end(this->__begin_ + __sz);
^
/usr/include/vulkan/vulkan.hpp:82002:20: note: in instantiation of member
function 'std::__1::vector<vk::DisplayPropertiesKHR, unsigned int
*>::resize' requested here
properties.resize( propertyCount );
^
a.cc:8:9: note: in instantiation of function template specialization
'vk::PhysicalDevice::getDisplayPropertiesKHR<unsigned int *, nullptr_t>'
requested here
gpu.getDisplayPropertiesKHR(&display_count, nullptr);
^
In file included from a.cc:2:
In file included from /usr/include/vulkan/vulkan.hpp:56:
/usr/include/c++/v1/vector:659:25: error: 'capacity' is a protected member of
'std::__1::__vector_base<vk::DisplayPropertiesKHR, unsigned int *>'
{return __base::capacity();}
^
/usr/include/c++/v1/vector:371:15: note: declared protected here
size_type capacity() const _NOEXCEPT
^
/usr/include/c++/v1/vector:656:46: error: no member named '__end_' in
'std::__1::vector<vk::DisplayPropertiesKHR, unsigned int *>'
{return static_cast<size_type>(this->__end_ - this->__begin_);}
~~~~ ^
/usr/include/vulkan/vulkan.hpp:82008:54: note: in instantiation of member
function
'std::__1::vector<vk::DisplayPropertiesKHR, unsigned int *>::size'
requested here
VULKAN_HPP_ASSERT( propertyCount <= properties.size() );
^
/usr/include/vulkan/vulkan.hpp:61:30: note: expanded from macro
'VULKAN_HPP_ASSERT'
# define VULKAN_HPP_ASSERT assert
^
a.cc:8:9: note: in instantiation of function template specialization
'vk::PhysicalDevice::getDisplayPropertiesKHR<unsigned int *, nullptr_t>'
requested here
gpu.getDisplayPropertiesKHR(&display_count, nullptr);
^
In file included from a.cc:2:
In file included from /usr/include/vulkan/vulkan.hpp:56:
/usr/include/c++/v1/vector:1287:30: error: no member named '__alloc' in
'std::__1::vector<vk::DisplayPropertiesKHR, unsigned int *>'
: __base(_VSTD::move(__x.__alloc()))
~~~ ^
/usr/include/vulkan/vulkan.hpp:82011:12: note: in instantiation of member
function 'std::__1::vector<vk::DisplayPropertiesKHR, unsigned int
*>::vector' requested here
return createResultValue( result, properties, VULKAN_HPP_NAMESPACE_S...
^
a.cc:8:9: note: in instantiation of function template specialization
'vk::PhysicalDevice::getDisplayPropertiesKHR<unsigned int *, nullptr_t>'
requested here
gpu.getDisplayPropertiesKHR(&display_count, nullptr);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
$ g++9 a.cc
In file included from /usr/lib/gcc9/include/c++/vector:67,
from /usr/include/vulkan/vulkan.hpp:56,
from a.cc:2:
/usr/lib/gcc9/include/c++/bits/stl_vector.h: In instantiation of 'struct std::_Vector_base<vk::DisplayPropertiesKHR, unsigned int*>':
/usr/lib/gcc9/include/c++/bits/stl_vector.h:386:11: required from 'class std::vector<vk::DisplayPropertiesKHR, unsigned int*>'
a.cc:8:56: required from here
/usr/lib/gcc9/include/c++/bits/stl_vector.h:84:21: error: 'unsigned int*' is not a class, struct, or union type
84 | rebind<_Tp>::other _Tp_alloc_type;
| ^~~~~~~~~~~~~~
/usr/lib/gcc9/include/c++/bits/stl_vector.h:86:9: error: 'unsigned int*' is not a class, struct, or union type
86 | pointer;
| ^~~~~~~
/usr/lib/gcc9/include/c++/bits/stl_vector.h: In instantiation of 'class std::vector<vk::DisplayPropertiesKHR, unsigned int*>':
a.cc:8:56: required from here
/usr/lib/gcc9/include/c++/bits/stl_vector.h:471:20: error: no members matching 'std::vector<vk::DisplayPropertiesKHR, unsigned int*>::_Base {aka std::_Vector_base<vk::DisplayPropertiesKHR, unsigned int*>}::_M_allocate' in 'std::vector<vk::DisplayPropertiesKHR, unsigned int*>::_Base' {aka 'struct std::_Vector_base<vk::DisplayPropertiesKHR, unsigned int*>'}
471 | using _Base::_M_allocate;
| ^~~~~~~~~~~
/usr/lib/gcc9/include/c++/bits/stl_vector.h:472:20: error: no members matching 'std::vector<vk::DisplayPropertiesKHR, unsigned int*>::_Base {aka std::_Vector_base<vk::DisplayPropertiesKHR, unsigned int*>}::_M_deallocate' in 'std::vector<vk::DisplayPropertiesKHR, unsigned int*>::_Base' {aka 'struct std::_Vector_base<vk::DisplayPropertiesKHR, unsigned int*>'}
472 | using _Base::_M_deallocate;
| ^~~~~~~~~~~~~
/usr/lib/gcc9/include/c++/bits/stl_vector.h:474:20: error: no members matching 'std::vector<vk::DisplayPropertiesKHR, unsigned int*>::_Base {aka std::_Vector_base<vk::DisplayPropertiesKHR, unsigned int*>}::_M_get_Tp_allocator' in 'std::vector<vk::DisplayPropertiesKHR, unsigned int*>::_Base' {aka 'struct std::_Vector_base<vk::DisplayPropertiesKHR, unsigned int*>'}
474 | using _Base::_M_get_Tp_allocator;
| ^~~~~~~~~~~~~~~~~~~
In file included from a.cc:2:
/usr/include/vulkan/vulkan.hpp: In instantiation of 'typename vk::ResultValueType<std::vector<vk::DisplayPropertiesKHR, Allocator> >::type vk::PhysicalDevice::getDisplayPropertiesKHR(const Allocator&, const Dispatch&) const [with Allocator = unsigned int*; Dispatch = std::nullptr_t; typename vk::ResultValueType<std::vector<vk::DisplayPropertiesKHR, Allocator> >::type = std::vector<vk::DisplayPropertiesKHR, unsigned int*>]':
a.cc:8:56: required from here
/usr/include/vulkan/vulkan.hpp:81999:39: error: request for member 'vkGetPhysicalDeviceDisplayPropertiesKHR' in 'd', which is of non-class type 'std::nullptr_t'
81999 | result = static_cast<Result>( d.vkGetPhysicalDeviceDisplayPropertiesKHR( m_physicalDevice, &propertyCount, nullptr ) );
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vulkan/vulkan.hpp:82003:41: error: request for member 'vkGetPhysicalDeviceDisplayPropertiesKHR' in 'd', which is of non-class type 'std::nullptr_t'
82003 | result = static_cast<Result>( d.vkGetPhysicalDeviceDisplayPropertiesKHR( m_physicalDevice, &propertyCount, reinterpret_cast<VkDisplayPropertiesKHR*>( properties.data() ) ) );
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/lib/gcc9/include/c++/vector:67,
from /usr/include/vulkan/vulkan.hpp:56,
from a.cc:2:
/usr/lib/gcc9/include/c++/bits/stl_vector.h: In instantiation of 'std::vector<_Tp, _Alloc>::~vector() [with _Tp = vk::DisplayPropertiesKHR; _Alloc = unsigned int*]':
a.cc:8:56: required from here
/usr/lib/gcc9/include/c++/bits/stl_vector.h:677:30: error: 'struct std::_Vector_base<vk::DisplayPropertiesKHR, unsigned int*>::_Vector_impl' has no member named '_M_start'
677 | std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
| ~~~~~~~~~~~~~~^~~~~~~~
/usr/lib/gcc9/include/c++/bits/stl_vector.h:677:54: error: 'struct std::_Vector_base<vk::DisplayPropertiesKHR, unsigned int*>::_Vector_impl' has no member named '_M_finish'
677 | std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
| ~~~~~~~~~~~~~~^~~~~~~~~
/usr/lib/gcc9/include/c++/bits/stl_vector.h:678:28: error: '_M_get_Tp_allocator' was not declared in this scope; did you mean 'get_allocator'?
678 | _M_get_Tp_allocator());
| ~~~~~~~~~~~~~~~~~~~^~
| get_allocator
/usr/lib/gcc9/include/c++/bits/stl_vector.h: In instantiation of 'std::_Vector_base<_Tp, _Alloc>::_Vector_base(const allocator_type&) [with _Tp = vk::DisplayPropertiesKHR; _Alloc = unsigned int*; std::_Vector_base<_Tp, _Alloc>::allocator_type = unsigned int*]':
/usr/lib/gcc9/include/c++/bits/stl_vector.h:495:18: required from 'std::vector<_Tp, _Alloc>::vector(const allocator_type&) [with _Tp = vk::DisplayPropertiesKHR; _Alloc = unsigned int*; std::vector<_Tp, _Alloc>::allocator_type = unsigned int*]'
/usr/include/vulkan/vulkan.hpp:81994:49: required from 'typename vk::ResultValueType<std::vector<vk::DisplayPropertiesKHR, Allocator> >::type vk::PhysicalDevice::getDisplayPropertiesKHR(const Allocator&, const Dispatch&) const [with Allocator = unsigned int*; Dispatch = std::nullptr_t; typename vk::ResultValueType<std::vector<vk::DisplayPropertiesKHR, Allocator> >::type = std::vector<vk::DisplayPropertiesKHR, unsigned int*>]'
a.cc:8:56: required from here
/usr/lib/gcc9/include/c++/bits/stl_vector.h:291:20: error: no matching function for call to 'std::_Vector_base<vk::DisplayPropertiesKHR, unsigned int*>::_Vector_impl::_Vector_impl(unsigned int* const&)'
291 | : _M_impl(__a) { }
| ^
/usr/lib/gcc9/include/c++/bits/stl_vector.h:140:2: note: candidate: 'std::_Vector_base<_Tp, _Alloc>::_Vector_impl::_Vector_impl(std::_Vector_base<_Tp, _Alloc>::_Vector_impl&&) [with _Tp = vk::DisplayPropertiesKHR; _Alloc = unsigned int*]'
140 | _Vector_impl(_Vector_impl&& __x) noexcept
| ^~~~~~~~~~~~
/usr/lib/gcc9/include/c++/bits/stl_vector.h:140:30: note: no known conversion for argument 1 from 'const allocator_type' {aka 'unsigned int* const'} to 'std::_Vector_base<vk::DisplayPropertiesKHR, unsigned int*>::_Vector_impl&&'
140 | _Vector_impl(_Vector_impl&& __x) noexcept
| ~~~~~~~~~~~~~~~^~~
/usr/lib/gcc9/include/c++/bits/stl_vector.h:128:2: note: candidate: 'std::_Vector_base<_Tp, _Alloc>::_Vector_impl::_Vector_impl() [with _Tp = vk::DisplayPropertiesKHR; _Alloc = unsigned int*]'
128 | _Vector_impl() _GLIBCXX_NOEXCEPT_IF(
| ^~~~~~~~~~~~
/usr/lib/gcc9/include/c++/bits/stl_vector.h:128:2: note: candidate expects 0 arguments, 1 provided