Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 4 years ago

Language

C++

Compiler

gcc HEAD 12.0.0 20210624 (experimental)

Options
Warnings
Boost 1.73.0
C++2b(GNU)
no pedantic

Author

anonymous

about 4 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=gnu++2b
prog.cc: In lambda function:
prog.cc:11:25: error: invalid use of incomplete type 'struct TD<const int>'
   11 |         TD<decltype(m)>{};
      |                         ^
prog.cc:4:8: note: declaration of 'struct TD<const int>'
    4 | struct TD;
      |        ^~
prog.cc:12:25: error: invalid use of incomplete type 'struct TD<int&&>'
   12 |         TD<decltype(n)>{};
      |                         ^
prog.cc:4:8: note: declaration of 'struct TD<int&&>'
    4 | struct TD;
      |        ^~
Exit Code:
1