Author
anonymous
over 7 years ago
Language
Compiler
Options
Author
anonymous
over 7 years ago
$
In file included from /opt/wandbox/gcc-head/include/c++/8.0.0/ext/alloc_traits.h:36,
from /opt/wandbox/gcc-head/include/c++/8.0.0/bits/stl_construct.h:61,
from /opt/wandbox/gcc-head/include/c++/8.0.0/vector:62,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/alloc_traits.h: In instantiation of 'struct std::allocator_traits<unsigned char [3]>':
prog.cc:15:37: required from here
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/alloc_traits.h:88:43: error: 'unsigned char [3]' is not a class, struct, or union type
typedef typename _Alloc::value_type value_type;
^~~~~~~~~~
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/alloc_traits.h:95:70: error: 'unsigned char [3]' is not a class, struct, or union type
using pointer = __detected_or_t<value_type*, __pointer, _Alloc>;
^
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/alloc_traits.h:135:79: error: 'unsigned char [3]' is not a class, struct, or union type
using const_pointer = typename _Ptr<__c_pointer, const value_type>::type;
^
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/alloc_traits.h: In instantiation of 'struct std::allocator_traits<unsigned char [3]>::_Ptr<std::__allocator_traits_base::__v_pointer, void, void>':
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/alloc_traits.h:143:66: required from 'struct std::allocator_traits<unsigned char [3]>'
prog.cc:15:37: required from here
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/alloc_traits.h:102:71: error: 'unsigned char [3]' is not a class, struct, or union type
using type = typename pointer_traits<pointer>::template rebind<_Tp>;
^
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/alloc_traits.h: In instantiation of 'struct std::allocator_traits<unsigned char [3]>::_Ptr<std::__allocator_traits_base::__cv_pointer, const void, void>':
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/alloc_traits.h:151:79: required from 'struct std::allocator_traits<unsigned char [3]>'
prog.cc:15:37: required from here
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/alloc_traits.h:102:71: error: 'unsigned char [3]' is not a class, struct, or union type
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/alloc_traits.h: In instantiation of 'struct std::allocator_traits<unsigned char [3]>':
prog.cc:15:37: required from here
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/alloc_traits.h:159:68: error: 'unsigned char [3]' is not a class, struct, or union type
using difference_type = typename _Diff<_Alloc, pointer>::type;
^
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/alloc_traits.h:167:70: error: 'unsigned char [3]' is not a class, struct, or union type
using size_type = typename _Size<_Alloc, difference_type>::type;
^
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/alloc_traits.h:378:7: error: function returning an array
select_on_container_copy_construction(const _Alloc& __rhs)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.cc: In function 'int main()':
prog.cc:15:57: error: no matching function for call to 'std::allocator_traits<unsigned char [3]>::construct(allocator&, const std::pair<unsigned char (*)[3], long int>&, <brace-enclosed initializer list>)'
std::allocator_traits<triplet_t>::construct(a, p, {});
^
In file included from /opt/wandbox/gcc-head/include/c++/8.0.0/ext/alloc_traits.h:36,
from /opt/wandbox/gcc-head/include/c++/8.0.0/bits/stl_construct.h:61,
from /opt/wandbox/gcc-head/include/c++/8.0.0/vector:62,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/alloc_traits.h:342:14: note: candidate: 'template<class _Tp, class ... _Args> static decltype (std::allocator_traits<_Alloc>::_S_construct(__a, __p, (forward<_Args>)(std::allocator_traits::construct::__args)...)) std::allocator_traits<_Alloc>::construct(_Alloc&, _Tp*, _Args&& ...) [with _Tp = _Tp; _Args = {_Args ...}; _Alloc = unsigned char [3]]'
static auto construct(_Alloc& __a, _Tp* __p, _Args&&... __args)
^~~~~~~~~
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/alloc_traits.h:342:14: note: template argument deduction/substitution failed:
prog.cc:15:57: note: mismatched types '_Tp*' and 'std::pair<unsigned char (*)[3], long int>'
std::allocator_traits<triplet_t>::construct(a, p, {});
^
prog.cc:12:15: warning: unused variable 'temp' [-Wunused-variable]
triplet_t temp;
^~~~
Exit Code:
1