Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 5 years ago

Language

C++

Compiler

gcc HEAD 10.0.0 20191210 (experimental)

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

Author

anonymous

over 5 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.71.0/gcc-head/include -std=gnu++2a
prog.cc: In function 'int main()':
prog.cc:9:28: warning: unused variable 'x' [-Wunused-variable]
    9 |     std::same_as<int> auto x = f();
      |                            ^
prog.cc:10:29: warning: unused variable 'y' [-Wunused-variable]
   10 |     std::same_as<long> auto y = g();
      |                             ^
Exit Code:
0