Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 7 years ago

Language

Compiler

Options

Author

anonymous

over 7 years ago

$
prog.cc: In constructor 'Bar::Bar()':
prog.cc:16:9: error: 'Bar::foo' is initialized with itself [-Werror=init-self]
         Bar(): foo(foo) { std::cout << "Bar()\n"; }
         ^~~
prog.cc: In constructor 'Bar::Bar()':
prog.cc:16:20: error: '*<unknown>.Bar::foo' is used uninitialized in this function [-Werror=uninitialized]
         Bar(): foo(foo) { std::cout << "Bar()\n"; }
                    ^~~
cc1plus: all warnings being treated as errors
Exit Code:
1