Author
anonymous
over 6 years ago
Language
C++
Compiler
gcc HEAD 9.0.0 20180914 (experimental)
Options
Warnings
Boost 1.68.0
C++2a(GNU)
no pedantic
Author
anonymous
over 6 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/gcc-head/include -std=gnu++2a
In file included from /opt/wandbox/gcc-head/include/c++/9.0.0/x86_64-pc-linux-gnu/bits/c++allocator.h:33,
from /opt/wandbox/gcc-head/include/c++/9.0.0/bits/allocator.h:46,
from /opt/wandbox/gcc-head/include/c++/9.0.0/string:41,
from /opt/wandbox/gcc-head/include/c++/9.0.0/bits/locale_classes.h:40,
from /opt/wandbox/gcc-head/include/c++/9.0.0/bits/ios_base.h:41,
from /opt/wandbox/gcc-head/include/c++/9.0.0/ios:42,
from /opt/wandbox/gcc-head/include/c++/9.0.0/ostream:38,
from /opt/wandbox/gcc-head/include/c++/9.0.0/iostream:39,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/9.0.0/ext/new_allocator.h: In instantiation of 'void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = const char* [3]; _Args = {const char* const (&)[3]}; _Tp = const char* [3]]':
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/alloc_traits.h:475:4: required from 'static void std::allocator_traits<std::allocator<_CharT> >::construct(std::allocator_traits<std::allocator<_CharT> >::allocator_type&, _Up*, _Args&& ...) [with _Up = const char* [3]; _Args = {const char* const (&)[3]}; _Tp = const char* [3]; std::allocator_traits<std::allocator<_CharT> >::allocator_type = std::allocator<const char* [3]>]'
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_vector.h:1143:30: required from 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = const char* [3]; _Alloc = std::allocator<const char* [3]>; std::vector<_Tp, _Alloc>::value_type = const char* [3]]'
prog.cc:11:21: required from here
/opt/wandbox/gcc-head/include/c++/9.0.0/ext/new_allocator.h:139:4: error: parenthesized initializer in array new
139 | { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.0/ext/new_allocator.h: In instantiation of 'void __gnu_cxx::new_allocator<_Tp>::destroy(_Up*) [with _Up = const char* [3]; _Tp = const char* [3]]':
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/alloc_traits.h:487:4: required from 'static void std::allocator_traits<std::allocator<_CharT> >::destroy(std::allocator_traits<std::allocator<_CharT> >::allocator_type&, _Up*) [with _Up = const char* [3]; _Tp = const char* [3]; std::allocator_traits<std::allocator<_CharT> >::allocator_type = std::allocator<const char* [3]>]'
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/vector.tcc:461:28: required from 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const char* const (&)[3]}; _Tp = const char* [3]; _Alloc = std::allocator<const char* [3]>; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<const char* (*)[3], std::vector<const char* [3]> >; typename std::_Vector_base<_Tp, _Alloc>::pointer = const char* (*)[3]]'
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_vector.h:1149:4: required from 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = const char* [3]; _Alloc = std::allocator<const char* [3]>; std::vector<_Tp, _Alloc>::value_type = const char* [3]]'
prog.cc:11:21: required from here
/opt/wandbox/gcc-head/include/c++/9.0.0/ext/new_allocator.h:143:28: error: request for member '~const char* [3]' in '* __p', which is of non-class type 'const char* [3]'
143 | destroy(_Up* __p) { __p->~_Up(); }
| ~~~~~~^~~
In file included from /opt/wandbox/gcc-head/include/c++/9.0.0/vector:62,
from prog.cc:2:
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_construct.h: In instantiation of 'void std::_Construct(_T1*, _Args&& ...) [with _T1 = const char* [3]; _Args = {const char* [3]}]':
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_uninitialized.h:83:18: required from 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = std::move_iterator<const char* (*)[3]>; _ForwardIterator = const char* (*)[3]; bool _TrivialValueTypes = false]'
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_uninitialized.h:134:15: required from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = std::move_iterator<const char* (*)[3]>; _ForwardIterator = const char* (*)[3]]'
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_uninitialized.h:289:37: required from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp>&) [with _InputIterator = std::move_iterator<const char* (*)[3]>; _ForwardIterator = const char* (*)[3]; _Tp = const char* [3]]'
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_uninitialized.h:311:2: required from '_ForwardIterator std::__uninitialized_move_if_noexcept_a(_InputIterator, _InputIterator, _ForwardIterator, _Allocator&) [with _InputIterator = const char* (*)[3]; _ForwardIterator = const char* (*)[3]; _Allocator = std::allocator<const char* [3]>]'
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/vector.tcc:448:6: required from 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const char* const (&)[3]}; _Tp = const char* [3]; _Alloc = std::allocator<const char* [3]>; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<const char* (*)[3], std::vector<const char* [3]> >; typename std::_Vector_base<_Tp, _Alloc>::pointer = const char* (*)[3]]'
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_vector.h:1149:4: required from 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = const char* [3]; _Alloc = std::allocator<const char* [3]>; std::vector<_Tp, _Alloc>::value_type = const char* [3]]'
prog.cc:11:21: required from here
/opt/wandbox/gcc-head/include/c++/9.0.0/bits/stl_construct.h:75:7: error: parenthesized initializer in array new
75 | { ::new(static_cast<void*>(__p)) _T1(std::forward<_Args>(__args)...); }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Exit Code:
1