Language
C++
Compiler
gcc HEAD 12.0.0 20210421 (experimental)
Options
Warnings
Boost 1.73.0
C++2b(GNU)
no pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=gnu++2b
Exit Code:
1
Author
anonymous
almost 4 years ago
C++
gcc HEAD 12.0.0 20210421 (experimental)
Author
anonymous
almost 4 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=gnu++2b
prog.cc: In function 'int main()':
prog.cc:10:29: error: aggregate 'incomplete<ranges::remove_if_view<ranges::ref_view<const std::vector<int> >, main()::<lambda(int)> > > x' has incomplete type and cannot be defined
10 | incomplete<decltype(rng)> x;
| ^
prog.cc:11:49: error: aggregate 'incomplete<ranges::basic_iterator<ranges::adaptor_cursor<__gnu_cxx::__normal_iterator<const int*, std::vector<int> >, ranges::remove_if_view<ranges::ref_view<const std::vector<int> >, main()::<lambda(int)> >::adaptor> > > y' has incomplete type and cannot be defined
11 | incomplete<ranges::iterator_t<decltype(rng)>> y;
| ^
prog.cc:12:90: error: aggregate 'incomplete<std::bidirectional_iterator_tag> z' has incomplete type and cannot be defined
12 | incomplete<std::iterator_traits<ranges::iterator_t<decltype(rng)>>::iterator_category> z;
| ^