Author
anonymous
over 6 years ago
Language
C++
Compiler
gcc 8.2.0
Options
Warnings
Boost 1.68.0
C++17
-pedantic
Author
anonymous
over 6 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/gcc-8.2.0/include -std=c++17 -pedantic
prog.cc: In instantiation of 'class t_Test<int>::t_DooImpl<(t_Test<int>::t_KindId)0, void>':
prog.cc:52:36: required from 'void t_Test<x_Dummy>::doo() [with t_Test<x_Dummy>::t_KindId x_kind = (t_Test<int>::t_KindId)0; x_Dummy = int]'
prog.cc:59:33: required from here
prog.cc:29:15: error: 'doo' was not declared in this scope
friend auto t_Test<x_Dummy>::
^~~~~~~~~~~~~~~
prog.cc:29:15: note: suggested alternative: 'bool'
friend auto t_Test<x_Dummy>::
^~~~~~~~~~~~~~~
bool
prog.cc: In instantiation of 'void t_Test<x_Dummy>::doo() [with t_Test<x_Dummy>::t_KindId x_kind = (t_Test<int>::t_KindId)0; x_Dummy = int]':
prog.cc:59:33: required from here
prog.cc:52:36: error: 'static void t_Test<x_Dummy>::t_DooImpl<t_Test<x_Dummy>::t_KindId::first, xx_Dummy>::doo_impl(t_Test<x_Dummy>&) [with xx_Dummy = void; x_Dummy = int]' is private within this context
return t_DooImpl<x_kind>::doo_impl(*this);
~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
prog.cc:33:3: note: declared private here
doo_impl
^~~~~~~~
Exit Code:
1