Author
anonymous
over 7 years ago
Language
Compiler
Options
Author
anonymous
over 7 years ago
$
In file included from /opt/wandbox/gcc-8.1.0/include/c++/8.1.0/bits/stl_list.h:60,
from /opt/wandbox/gcc-8.1.0/include/c++/8.1.0/list:63,
from prog.cc:1:
/opt/wandbox/gcc-8.1.0/include/c++/8.1.0/ext/alloc_traits.h: In instantiation of 'struct __gnu_cxx::__alloc_traits<std::allocator<void>, void>':
/opt/wandbox/gcc-8.1.0/include/c++/8.1.0/bits/stl_list.h:361:24: required from 'class std::__cxx11::_List_base<int, std::allocator<void> >'
/opt/wandbox/gcc-8.1.0/include/c++/8.1.0/bits/stl_list.h:563:11: required from 'class std::__cxx11::list<int, std::allocator<void> >'
prog.cc:5:40: required from here
/opt/wandbox/gcc-8.1.0/include/c++/8.1.0/ext/alloc_traits.h:64:53: error: forming reference to void
typedef value_type& reference;
^~~~~~~~~
/opt/wandbox/gcc-8.1.0/include/c++/8.1.0/ext/alloc_traits.h:65:53: error: forming reference to void
typedef const value_type& const_reference;
^~~~~~~~~~~~~~~
In file included from /opt/wandbox/gcc-8.1.0/include/c++/8.1.0/list:63,
from prog.cc:1:
/opt/wandbox/gcc-8.1.0/include/c++/8.1.0/bits/stl_list.h: In instantiation of 'class std::__cxx11::list<int, std::allocator<void> >':
prog.cc:5:40: required from here
/opt/wandbox/gcc-8.1.0/include/c++/8.1.0/bits/stl_list.h:578:21: error: static assertion failed: std::list must have the same value_type as its allocator
static_assert(is_same<typename _Alloc::value_type, _Tp>::value,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Exit Code:
1