Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 3 years ago

Language

C++

Compiler

gcc HEAD 12.0.0 20210721 (experimental)

Options
Warnings
Don't Use Boost
C++2a
-pedantic-errors

Author

anonymous

over 3 years ago

$ g++ prog.cc -Wall -Wextra -std=c++2a -pedantic-errors
In file included from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/12.0.0/bit: In instantiation of 'constexpr _To std::bit_cast(const _From&) [with _To = Weird; _From = int]':
prog.cc:16:53:   required from here
/opt/wandbox/gcc-head/include/c++/12.0.0/bit:77:33: error: use of deleted function 'Weird::Weird(Weird&&)'
   77 |       return __builtin_bit_cast(_To, __from);
      |                                 ^~~
prog.cc:6:5: note: declared here
    6 |     Weird(Weird&&) = delete;
      |     ^~~~~
Exit Code:
1