Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In file included from /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/x86_64-linux-gnu/bits/c++allocator.h:33,
- from /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/allocator.h:46,
- from /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/string:41,
- from /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/locale_classes.h:40,
- from /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/ios_base.h:41,
- from /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/ios:42,
- from /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/ostream:38,
- from /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/iostream:39,
- from <source>:1:
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/ext/new_allocator.h: In instantiation of 'class __gnu_cxx::new_allocator<int&>':
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/allocator.h:120:11: required from 'class std::allocator<int&>'
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h:84:21: required from 'struct std::_Vector_base<int&, std::allocator<int&> >'
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h:386:11: required from 'class std::vector<int&>'
- <source>:7:23: required from here
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/ext/new_allocator.h:62:26: error: forming pointer to reference type 'int&'
- 62 | typedef _Tp* pointer;
- | ^~~~~~~
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/ext/new_allocator.h:63:26: error: forming pointer to reference type 'int&'
- 63 | typedef const _Tp* const_pointer;
- | ^~~~~~~~~~~~~
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/ext/new_allocator.h:103:7: error: forming pointer to reference type 'int&'
- 103 | allocate(size_type __n, const void* = static_cast<const void*>(0))
- | ^~~~~~~~
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/ext/new_allocator.h:120:7: error: forming pointer to reference type 'int&'
- 120 | deallocate(_Tp* __p, size_type __t)
- | ^~~~~~~~~~
- In file included from /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/string:41,
- from /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/locale_classes.h:40,
- from /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/ios_base.h:41,
- from /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/ios:42,
- from /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/ostream:38,
- from /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/iostream:39,
- from <source>:1:
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/allocator.h: In instantiation of 'class std::allocator<int&>':
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h:84:21: required from 'struct std::_Vector_base<int&, std::allocator<int&> >'
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h:386:11: required from 'class std::vector<int&>'
- <source>:7:23: required from here
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/allocator.h:127:26: error: forming pointer to reference type 'int&'
- 127 | typedef _Tp* pointer;
- | ^~~~~~~
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/allocator.h:128:26: error: forming pointer to reference type 'int&'
- 128 | typedef const _Tp* const_pointer;
- | ^~~~~~~~~~~~~
- In file included from /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/ext/alloc_traits.h:34,
- from /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/basic_string.h:40,
- from /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/string:55,
- from /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/locale_classes.h:40,
- from /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/ios_base.h:41,
- from /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/ios:42,
- from /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/ostream:38,
- from /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/iostream:39,
- from <source>:1:
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/alloc_traits.h: In instantiation of 'struct std::allocator_traits<std::allocator<int&> >':
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/ext/alloc_traits.h:48:10: required from 'struct __gnu_cxx::__alloc_traits<std::allocator<int&>, int&>'
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h:84:21: required from 'struct std::_Vector_base<int&, std::allocator<int&> >'
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h:386:11: required from 'class std::vector<int&>'
- <source>:7:23: required from here
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/alloc_traits.h:411:13: error: forming pointer to reference type 'int&'
- 411 | using pointer = _Tp*;
- | ^~~~~~~
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/alloc_traits.h:414:13: error: forming pointer to reference type 'int&'
- 414 | using const_pointer = const _Tp*;
- | ^~~~~~~~~~~~~
- In file included from /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/basic_string.h:40,
- from /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/string:55,
- from /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/locale_classes.h:40,
- from /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/ios_base.h:41,
- from /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/ios:42,
- from /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/ostream:38,
- from /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/iostream:39,
- from <source>:1:
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/ext/alloc_traits.h: In instantiation of 'struct __gnu_cxx::__alloc_traits<std::allocator<int&>, int&>':
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h:84:21: required from 'struct std::_Vector_base<int&, std::allocator<int&> >'
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h:386:11: required from 'class std::vector<int&>'
- <source>:7:23: required from here
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/ext/alloc_traits.h:64:23: error: 'allocate' has not been declared in 'std::_Base_type<std::allocator<int&>, int&>'
- 64 | using _Base_type::allocate;
- | ^~~~~~~~
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/ext/alloc_traits.h:65:23: error: 'deallocate' has not been declared in 'std::_Base_type<std::allocator<int&>, int&>'
- 65 | using _Base_type::deallocate;
- | ^~~~~~~~~~
- In file included from /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/vector:67,
- from <source>:2:
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h: In instantiation of 'class std::vector<int&>':
- <source>:7:23: required from here
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h:471:20: error: '_M_allocate' has not been declared in 'std::_Base<int&, std::allocator<int&> >'
- 471 | using _Base::_M_allocate;
- | ^~~~~~~~~~~
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h:472:20: error: '_M_deallocate' has not been declared in 'std::_Base<int&, std::allocator<int&> >'
- 472 | using _Base::_M_deallocate;
- | ^~~~~~~~~~~~~
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h:1165:7: error: forming pointer to reference type 'int&'
- 1165 | data() _GLIBCXX_NOEXCEPT
- | ^~~~
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h:1169:7: error: forming pointer to reference type 'int&'
- 1169 | data() const _GLIBCXX_NOEXCEPT
- | ^~~~
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h:1200:7: error: 'void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = int&; _Alloc = std::allocator<int&>; std::vector<_Tp, _Alloc>::value_type = int&]' cannot be overloaded with 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = int&; _Alloc = std::allocator<int&>; std::vector<_Tp, _Alloc>::value_type = int&]'
- 1200 | push_back(value_type&& __x)
- | ^~~~~~~~~
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h:1184:7: note: previous declaration 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = int&; _Alloc = std::allocator<int&>; std::vector<_Tp, _Alloc>::value_type = int&]'
- 1184 | push_back(const value_type& __x)
- | ^~~~~~~~~
- In file included from /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/range_access.h:36,
- from /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/string:54,
- from /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/locale_classes.h:40,
- from /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/ios_base.h:41,
- from /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/ios:42,
- from /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/ostream:38,
- from /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/iostream:39,
- from <source>:1:
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/initializer_list: In instantiation of 'class std::initializer_list<int&>':
- <source>:7:31: required from here
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/initializer_list:54:26: error: forming pointer to reference type 'int&'
- 54 | typedef const _E* iterator;
- | ^~~~~~~~
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/initializer_list:55:26: error: forming pointer to reference type 'int&'
- 55 | typedef const _E* const_iterator;
- | ^~~~~~~~~~~~~~
- <source>: In function 'int main()':
- <source>:7:27: warning: narrowing conversion of 'a' from 'int' to 'std::vector<int&>::size_type' {aka 'long unsigned int'} [-Wnarrowing]
- 7 | std::vector<int&> vec{a, b};
- | ^
- In file included from /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/vector:67,
- from <source>:2:
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h: In instantiation of 'std::vector<_Tp, _Alloc>::~vector() [with _Tp = int&; _Alloc = std::allocator<int&>]':
- <source>:7:31: required from here
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h:677:30: error: 'struct std::_Vector_base<int&, std::allocator<int&> >::_Vector_impl' has no member named '_M_start'
- 677 | std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
- | ~~~~~~~~~~~~~~^~~~~~~~
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h:677:54: error: 'struct std::_Vector_base<int&, std::allocator<int&> >::_Vector_impl' has no member named '_M_finish'
- 677 | std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
- | ~~~~~~~~~~~~~~^~~~~~~~~
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h: In instantiation of 'std::_Vector_base<_Tp, _Alloc>::~_Vector_base() [with _Tp = int&; _Alloc = std::allocator<int&>]':
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h:521:47: required from 'std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&) [with _Tp = int&; _Alloc = std::allocator<int&>; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = int&; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<int&>]'
- <source>:7:31: required from here
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h:332:24: error: 'struct std::_Vector_base<int&, std::allocator<int&> >::_Vector_impl' has no member named '_M_start'
- 332 | _M_deallocate(_M_impl._M_start,
- | ~~~~~~~~^~~~~~~~
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h:333:17: error: 'struct std::_Vector_base<int&, std::allocator<int&> >::_Vector_impl' has no member named '_M_end_of_storage'
- 333 | _M_impl._M_end_of_storage - _M_impl._M_start);
- | ~~~~~~~~^~~~~~~~~~~~~~~~~
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h:333:45: error: 'struct std::_Vector_base<int&, std::allocator<int&> >::_Vector_impl' has no member named '_M_start'
- 333 | _M_impl._M_end_of_storage - _M_impl._M_start);
- | ~~~~~~~~^~~~~~~~
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h: In instantiation of 'void std::vector<_Tp, _Alloc>::_M_fill_initialize(std::vector<_Tp, _Alloc>::size_type, const value_type&) [with _Tp = int&; _Alloc = std::allocator<int&>; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = int&]':
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h:522:9: required from 'std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&) [with _Tp = int&; _Alloc = std::allocator<int&>; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = int&; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<int&>]'
- <source>:7:31: required from here
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h:1592:16: error: 'struct std::_Vector_base<int&, std::allocator<int&> >::_Vector_impl' has no member named '_M_finish'
- 1592 | this->_M_impl._M_finish =
- | ~~~~~~~~~~~~~~^~~~~~~~~
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h:1593:48: error: 'struct std::_Vector_base<int&, std::allocator<int&> >::_Vector_impl' has no member named '_M_start'
- 1593 | std::__uninitialized_fill_n_a(this->_M_impl._M_start, __n, __value,
- | ~~~~~~~~~~~~~~^~~~~~~~
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h: In instantiation of 'void std::_Vector_base<_Tp, _Alloc>::_M_create_storage(std::size_t) [with _Tp = int&; _Alloc = std::allocator<int&>; std::size_t = long unsigned int]':
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h:302:9: required from 'std::_Vector_base<_Tp, _Alloc>::_Vector_base(std::size_t, const allocator_type&) [with _Tp = int&; _Alloc = std::allocator<int&>; std::size_t = long unsigned int; std::_Vector_base<_Tp, _Alloc>::allocator_type = std::allocator<int&>]'
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h:521:47: required from 'std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&) [with _Tp = int&; _Alloc = std::allocator<int&>; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = int&; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<int&>]'
- <source>:7:31: required from here
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h:358:16: error: 'struct std::_Vector_base<int&, std::allocator<int&> >::_Vector_impl' has no member named '_M_start'
- 358 | this->_M_impl._M_start = this->_M_allocate(__n);
- | ~~~~~~~~~~~~~~^~~~~~~~
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h:359:16: error: 'struct std::_Vector_base<int&, std::allocator<int&> >::_Vector_impl' has no member named '_M_finish'
- 359 | this->_M_impl._M_finish = this->_M_impl._M_start;
- | ~~~~~~~~~~~~~~^~~~~~~~~
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h:359:42: error: 'struct std::_Vector_base<int&, std::allocator<int&> >::_Vector_impl' has no member named '_M_start'
- 359 | this->_M_impl._M_finish = this->_M_impl._M_start;
- | ~~~~~~~~~~~~~~^~~~~~~~
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h:360:16: error: 'struct std::_Vector_base<int&, std::allocator<int&> >::_Vector_impl' has no member named '_M_end_of_storage'
- 360 | this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n;
- | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h:360:50: error: 'struct std::_Vector_base<int&, std::allocator<int&> >::_Vector_impl' has no member named '_M_start'
- 360 | this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n;
- | ~~~~~~~~~~~~~~^~~~~~~~
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h: In instantiation of 'std::_Vector_base<_Tp, _Alloc>::_Vector_impl_data::_Vector_impl_data() [with _Tp = int&; _Alloc = std::allocator<int&>]':
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h:134:22: required from 'std::_Vector_base<_Tp, _Alloc>::_Vector_impl::_Vector_impl(const _Tp_alloc_type&) [with _Tp = int&; _Alloc = std::allocator<int&>; std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type = std::allocator<int&>]'
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h:301:20: required from 'std::_Vector_base<_Tp, _Alloc>::_Vector_base(std::size_t, const allocator_type&) [with _Tp = int&; _Alloc = std::allocator<int&>; std::size_t = long unsigned int; std::_Vector_base<_Tp, _Alloc>::allocator_type = std::allocator<int&>]'
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h:521:47: required from 'std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&) [with _Tp = int&; _Alloc = std::allocator<int&>; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = int&; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<int&>]'
- <source>:7:31: required from here
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h:95:47: error: using invalid field 'std::_Vector_base<_Tp, _Alloc>::_Vector_impl_data::_M_start'
- 95 | : _M_start(), _M_finish(), _M_end_of_storage()
- | ^
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h:95:47: error: using invalid field 'std::_Vector_base<_Tp, _Alloc>::_Vector_impl_data::_M_finish'
- /opt/compiler-explorer/gcc-trunk-20200322/include/c++/10.0.1/bits/stl_vector.h:95:47: error: using invalid field 'std::_Vector_base<_Tp, _Alloc>::_Vector_impl_data::_M_end_of_storage'
- Compiler returned: 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement