Language
C++
Compiler
gcc HEAD 9.0.1 20190311 (experimental)
Options
Boost 1.69.0
C++17
no pedantic
$ g++ prog.cc -I/opt/wandbox/boost-1.69.0/gcc-head/include -std=c++17
Exit Code:
1
Author
anonymous
over 6 years ago
C++
gcc HEAD 9.0.1 20190311 (experimental)
Author
anonymous
over 6 years ago
$ g++ prog.cc -I/opt/wandbox/boost-1.69.0/gcc-head/include -std=c++17
prog.cc: In function 'int main()':
prog.cc:14:23: error: cannot call member function 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::begin() [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; typename std::_Vector_base<_Tp, _Alloc>::pointer = int*]' without object
14 | decltype(&T2::begin()) b2; //but not this?
| ^