Language
C++
Compiler
gcc HEAD 10.0.1 20200224 (experimental)
Options
Warnings
Boost 1.72.0
C++2a(GNU)
no pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.72.0/gcc-head/include -std=gnu++2a
Exit Code:
1
Author
anonymous
about 5 years ago
C++
gcc HEAD 10.0.1 20200224 (experimental)
Author
anonymous
about 5 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.72.0/gcc-head/include -std=gnu++2a
prog.cc: In function 'int main()':
prog.cc:15:53: error: aggregate 'Test1<any_type<std::array<long unsigned int, 2>{std::__array_traits<long unsigned int, 2>::_Type{1, 2}}> > a' has incomplete type and cannot be defined
15 | Test1<any_type<std::array<std::size_t, 2>{1, 2}>> a;
| ^
prog.cc:16:22: error: aggregate 'Test2<any_type<1> > b' has incomplete type and cannot be defined
16 | Test2<any_type<1>> b;
| ^
prog.cc:17:22: warning: unused variable 'ok' [-Wunused-variable]
17 | Test3<any_type<1>> ok;
| ^~