Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

gcc HEAD 12.0.0 20210721 (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
prog.cc: In function 'int main()':
prog.cc:8:11: error: cannot convert 'B' to 'A'
    8 |         f(_2);
      |           ^~
      |           |
      |           B
prog.cc:4:8: note:   initializing argument 1 of 'void f(A)'
    4 | void f(A) {}
      |        ^
Exit Code:
1