Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 9 years ago

Language

Compiler

Options

Author

anonymous

about 9 years ago

$
In file included from prog.cc:1:
In file included from /opt/wandbox/clang-head/include/c++/v1/iostream:38:
In file included from /opt/wandbox/clang-head/include/c++/v1/ios:216:
In file included from /opt/wandbox/clang-head/include/c++/v1/__locale:15:
In file included from /opt/wandbox/clang-head/include/c++/v1/string:470:
In file included from /opt/wandbox/clang-head/include/c++/v1/string_view:171:
In file included from /opt/wandbox/clang-head/include/c++/v1/__string:56:
In file included from /opt/wandbox/clang-head/include/c++/v1/algorithm:640:
/opt/wandbox/clang-head/include/c++/v1/memory:1838:61: error: object expression of non-scalar type 'int [2][2]' cannot be used in a pseudo-destructor expression
    _LIBCPP_INLINE_VISIBILITY void destroy(pointer __p) {__p->~_Tp();}
                                                         ~~~^
/opt/wandbox/clang-head/include/c++/v1/memory:1706:18: note: in instantiation of member function 'std::__1::allocator<int [2][2]>::destroy' requested here
            {__a.destroy(__p);}
                 ^
/opt/wandbox/clang-head/include/c++/v1/memory:1574:14: note: in instantiation of function template specialization 'std::__1::allocator_traits<std::__1::allocator<int [2][2]> >::__destroy<int [2][2]>' requested here
            {__destroy(__has_destroy<allocator_type, _Tp*>(), __a, __p);}
             ^
/opt/wandbox/clang-head/include/c++/v1/deque:1167:25: note: in instantiation of function template specialization 'std::__1::allocator_traits<std::__1::allocator<int [2][2]> >::destroy<int [2][2]>' requested here
        __alloc_traits::destroy(__a, _VSTD::addressof(*__i));
                        ^
/opt/wandbox/clang-head/include/c++/v1/deque:1104:5: note: in instantiation of member function 'std::__1::__deque_base<int [2][2], std::__1::allocator<int [2][2]> >::clear' requested here
    clear();
    ^
/opt/wandbox/clang-head/include/c++/v1/deque:1186:28: note: in instantiation of member function 'std::__1::__deque_base<int [2][2], std::__1::allocator<int [2][2]> >::~__deque_base' requested here
class _LIBCPP_TEMPLATE_VIS deque
                           ^
In file included from prog.cc:1:
In file included from /opt/wandbox/clang-head/include/c++/v1/iostream:38:
In file included from /opt/wandbox/clang-head/include/c++/v1/ios:216:
In file included from /opt/wandbox/clang-head/include/c++/v1/__locale:15:
In file included from /opt/wandbox/clang-head/include/c++/v1/string:470:
In file included from /opt/wandbox/clang-head/include/c++/v1/string_view:171:
In file included from /opt/wandbox/clang-head/include/c++/v1/__string:56:
In file included from /opt/wandbox/clang-head/include/c++/v1/algorithm:640:
/opt/wandbox/clang-head/include/c++/v1/memory:1783:13: error: array 'new' cannot have initialization arguments
            ::new((void*)__p) _Up(_VSTD::forward<_Args>(__args)...);
            ^                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/wandbox/clang-head/include/c++/v1/memory:1694:18: note: in instantiation of function template specialization 'std::__1::allocator<int [2][2]>::construct<int [2][2], int const (&)[2][2]>' requested here
            {__a.construct(__p, _VSTD::forward<_Args>(__args)...);}
                 ^
/opt/wandbox/clang-head/include/c++/v1/memory:1540:14: note: in instantiation of function template specialization 'std::__1::allocator_traits<std::__1::allocator<int [2][2]> >::__construct<int [2][2], int const (&)[2][2]>' requested here
            {__construct(__has_construct<allocator_type, _Tp*, _Args...>(),
             ^
/opt/wandbox/clang-head/include/c++/v1/deque:1808:21: note: in instantiation of function template specialization 'std::__1::allocator_traits<std::__1::allocator<int [2][2]> >::construct<int [2][2], int const (&)[2][2]>' requested here
    __alloc_traits::construct(__a, _VSTD::addressof(*__base::end()), __v);
                    ^
/opt/wandbox/clang-head/include/c++/v1/stack:195:41: note: in instantiation of member function 'std::__1::deque<int [2][2], std::__1::allocator<int [2][2]> >::push_back' requested here
    void push(const value_type& __v) {c.push_back(__v);}
                                        ^
prog.cc:11:19: note: in instantiation of member function 'std::__1::stack<int [2][2], std::__1::deque<int [2][2], std::__1::allocator<int [2][2]> > >::push' requested here
    pila_matrices.push(a);
                  ^
2 errors generated.
Exit Code:
1