Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 7 years ago

Language

C++

Compiler

clang 7.0.0

Options
Warnings
Boost 1.68.0
C++2a(GNU)
no pedantic

Author

anonymous

over 7 years ago

noname-1
noname-2
noname-3

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/clang-7.0.0/include -std=gnu++2a
In file included from prog.cc:1:
In file included from /opt/wandbox/clang-7.0.0/include/c++/v1/stack:92:
/opt/wandbox/clang-7.0.0/include/c++/v1/deque:272:34: error: invalid application of 'sizeof' to an incomplete type 'Foo<int>'
  static const _DiffType value = sizeof(_ValueType) < 256 ? 4096 / sizeof(_ValueType) : 16;
                                 ^~~~~~~~~~~~~~~~~~
/opt/wandbox/clang-7.0.0/include/c++/v1/deque:282:32: note: in instantiation of template class 'std::__1::__deque_block_size<Foo<int>, long>' requested here
                               __deque_block_size<_ValueType, _DiffType>::value
                               ^
/opt/wandbox/clang-7.0.0/include/c++/v1/deque:949:13: note: in instantiation of default argument for '__deque_iterator<Foo<int>, Foo<int> *, Foo<int> &, Foo<int> **, long>' required here
    typedef __deque_iterator<value_type, pointer, reference, __map_pointer,
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/wandbox/clang-7.0.0/include/c++/v1/deque:1194:15: note: in instantiation of template class 'std::__1::__deque_base<Foo<int>, std::__1::allocator<Foo<int> > >' requested here
    : private __deque_base<_Tp, _Allocator>
              ^
/opt/wandbox/clang-7.0.0/include/c++/v1/stack:117:22: note: in instantiation of template class 'std::__1::deque<Foo<int>, std::__1::allocator<Foo<int> > >' requested here
    typedef typename container_type::value_type      value_type;
                     ^
prog.cc:4:20: note: in instantiation of template class 'std::__1::stack<Foo<int>, std::__1::deque<Foo<int>, std::__1::allocator<Foo<int> > > >' requested here
   std::stack<Foo> bar;
                   ^
prog.cc:8:14: note: in instantiation of template class 'Foo<int>' requested here
    Foo<int> x;
             ^
prog.cc:3:8: note: definition of 'Foo<int>' is not complete until the closing '}'
struct Foo{
       ^
In file included from prog.cc:1:
In file included from /opt/wandbox/clang-7.0.0/include/c++/v1/stack:92:
/opt/wandbox/clang-7.0.0/include/c++/v1/deque:1208:30: error: 'reference' is a protected member of 'std::__1::__deque_base<Foo<int>, std::__1::allocator<Foo<int> > >'
    typedef typename __base::reference             reference;
                             ^
/opt/wandbox/clang-7.0.0/include/c++/v1/stack:117:22: note: in instantiation of template class 'std::__1::deque<Foo<int>, std::__1::allocator<Foo<int> > >' requested here
    typedef typename container_type::value_type      value_type;
                     ^
prog.cc:4:20: note: in instantiation of template class 'std::__1::stack<Foo<int>, std::__1::deque<Foo<int>, std::__1::allocator<Foo<int> > > >' requested here
   std::stack<Foo> bar;
                   ^
prog.cc:8:14: note: in instantiation of template class 'Foo<int>' requested here
    Foo<int> x;
             ^
/opt/wandbox/clang-7.0.0/include/c++/v1/deque:934:54: note: declared protected here
    typedef value_type&                              reference;
                                                     ^
/opt/wandbox/clang-7.0.0/include/c++/v1/deque:1209:30: error: 'const_reference' is a protected member of 'std::__1::__deque_base<Foo<int>, std::__1::allocator<Foo<int> > >'
    typedef typename __base::const_reference       const_reference;
                             ^
/opt/wandbox/clang-7.0.0/include/c++/v1/deque:935:54: note: declared protected here
    typedef const value_type&                        const_reference;
                                                     ^
/opt/wandbox/clang-7.0.0/include/c++/v1/deque:1210:30: error: 'iterator' is a protected member of 'std::__1::__deque_base<Foo<int>, std::__1::allocator<Foo<int> > >'
    typedef typename __base::iterator              iterator;
                             ^
/opt/wandbox/clang-7.0.0/include/c++/v1/deque:950:50: note: declared protected here
                             difference_type>    iterator;
                                                 ^
/opt/wandbox/clang-7.0.0/include/c++/v1/deque:1211:30: error: 'const_iterator' is a protected member of 'std::__1::__deque_base<Foo<int>, std::__1::allocator<Foo<int> > >'
    typedef typename __base::const_iterator        const_iterator;
                             ^
/opt/wandbox/clang-7.0.0/include/c++/v1/deque:952:50: note: declared protected here
                             difference_type>    const_iterator;
                                                 ^
/opt/wandbox/clang-7.0.0/include/c++/v1/deque:1213:30: error: 'difference_type' is a protected member of 'std::__1::__deque_base<Foo<int>, std::__1::allocator<Foo<int> > >'
    typedef typename __base::difference_type       difference_type;
                             ^
/opt/wandbox/clang-7.0.0/include/c++/v1/deque:936:54: note: declared protected here
    typedef typename __alloc_traits::difference_type difference_type;
                                                     ^
/opt/wandbox/clang-7.0.0/include/c++/v1/deque:1215:30: error: 'pointer' is a protected member of 'std::__1::__deque_base<Foo<int>, std::__1::allocator<Foo<int> > >'
    typedef typename __base::pointer               pointer;
                             ^
/opt/wandbox/clang-7.0.0/include/c++/v1/deque:937:54: note: declared protected here
    typedef typename __alloc_traits::pointer         pointer;
                                                     ^
/opt/wandbox/clang-7.0.0/include/c++/v1/deque:1216:30: error: 'const_pointer' is a protected member of 'std::__1::__deque_base<Foo<int>, std::__1::allocator<Foo<int> > >'
    typedef typename __base::const_pointer         const_pointer;
                             ^
/opt/wandbox/clang-7.0.0/include/c++/v1/deque:938:54: note: declared protected here
    typedef typename __alloc_traits::const_pointer   const_pointer;
                                                     ^
/opt/wandbox/clang-7.0.0/include/c++/v1/deque:1398:30: error: '__map_const_pointer' is a protected member of 'std::__1::__deque_base<Foo<int>, std::__1::allocator<Foo<int> > >'
    typedef typename __base::__map_const_pointer __map_const_pointer;
                             ^
/opt/wandbox/clang-7.0.0/include/c++/v1/deque:946:81: note: declared protected here
    typedef typename allocator_traits<__const_pointer_allocator>::const_pointer __map_const_pointer;
                                                                                ^
In file included from prog.cc:1:
/opt/wandbox/clang-7.0.0/include/c++/v1/stack:121:5: error: static_assert failed due to requirement 'is_same<Foo<int>, value_type>::value' ""
    static_assert((is_same<_Tp, value_type>::value), "" );
    ^              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.cc:4:20: note: in instantiation of template class 'std::__1::stack<Foo<int>, std::__1::deque<Foo<int>, std::__1::allocator<Foo<int> > > >' requested here
   std::stack<Foo> bar;
                   ^
prog.cc:8:14: note: in instantiation of template class 'Foo<int>' requested here
    Foo<int> x;
             ^
10 errors generated.
Exit Code:
1