Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 7 years ago

Language

C++

Compiler

gcc HEAD 9.0.0 20180808 (experimental)

Options
Warnings
Boost 1.68.0
C++2a(GNU)
no pedantic
Raw compiler options
-fno-new-inheriting-ctors

Author

anonymous

almost 7 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/gcc-head/include -std=gnu++2a -fno-new-inheriting-ctors
prog.cc: In function 'int main()':
prog.cc:36:10: error: use of deleted function 'constexpr Test::Test()'
     Test test ;
          ^~~~
prog.cc:30:13: note: 'constexpr Test::Test()' is implicitly deleted because the default definition would be ill-formed:
   constexpr Test() noexcept = default;
             ^~~~
prog.cc:30:13: error: no matching function for call to 'Bar::Bar()'
prog.cc:19:13: note: candidate: 'constexpr Bar::Bar(Foo)'
   constexpr Bar(Foo const obj) noexcept : Foo(obj) {}
             ^~~
prog.cc:19:13: note:   candidate expects 1 argument, 0 provided
prog.cc:12:8: note: candidate: 'constexpr Bar::Bar(const Bar&)'
 struct Bar : Foo
        ^~~
prog.cc:12:8: note:   candidate expects 1 argument, 0 provided
prog.cc:12:8: note: candidate: 'constexpr Bar::Bar(Bar&&)'
prog.cc:12:8: note:   candidate expects 1 argument, 0 provided
prog.cc:36:10: warning: unused variable 'test' [-Wunused-variable]
     Test test ;
          ^~~~
Exit Code:
1