Language
C++
Compiler
clang 9.0.0
Options
Warnings
Boost 1.71.0
C++2a(GNU)
-pedantic-errors
$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.71.0/clang-9.0.0/include -std=gnu++2a -pedantic-errors
Exit Code:
1
Author
anonymous
over 5 years ago
C++
clang 9.0.0
Author
anonymous
over 5 years ago
$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.71.0/clang-9.0.0/include -std=gnu++2a -pedantic-errors
prog.cc:10:14: error: member access into incomplete type 'foo'
f.func();
^
prog.cc:11:10: note: in instantiation of function template specialization 'bar::memfun(foo &)::(anonymous class)::operator()<foo>' requested here
}(f);
^
prog.cc:3:8: note: forward declaration of 'foo'
struct foo; // forward declaration
^
1 error generated.