Language
C++
Compiler
gcc 5.4.0
Options
Warnings
Optimization
Don't Use Boost
C++14
-pedantic
$ g++ prog.cc -Wall -Wextra -O2 -march=native -std=c++14 -pedantic
Exit Code:
1
Author
anonymous
about 5 years ago
C++
gcc 5.4.0
Author
anonymous
about 5 years ago
$ g++ prog.cc -Wall -Wextra -O2 -march=native -std=c++14 -pedantic
In file included from prog.cc:1:0:
/opt/wandbox/gcc-5.4.0/include/c++/5.4.0/atomic: In instantiation of '_Tp std::atomic<_Tp>::load(std::memory_order) const [with _Tp = foo; std::memory_order = std::memory_order]':
prog.cc:12:20: required from here
/opt/wandbox/gcc-5.4.0/include/c++/5.4.0/atomic:234:13: error: no matching function for call to 'foo::foo()'
_Tp tmp;
^
prog.cc:6:3: note: candidate: foo::foo(bool, int)
foo(bool bar, int baz) : bar(bar), baz(baz) {
^
prog.cc:6:3: note: candidate expects 2 arguments, 0 provided
prog.cc:2:8: note: candidate: constexpr foo::foo(const foo&)
struct foo {
^
prog.cc:2:8: note: candidate expects 1 argument, 0 provided
prog.cc:2:8: note: candidate: constexpr foo::foo(foo&&)
prog.cc:2:8: note: candidate expects 1 argument, 0 provided