Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 5 years ago

Language

C++

Compiler

gcc HEAD 10.0.1 20200224 (experimental)

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

Author

anonymous

over 5 years ago

example

$ 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;
      |                      ^~
Exit Code:
1