prog.cpp: In function 'int main()':
prog.cpp:18:21: error: invalid use of non-static member function 'void bar::foo(char, short int)'
decltype(m(bar::foo)) test2('a', 13))
^
prog.cpp:18:21: error: invalid use of non-static member function 'void bar::foo(char, short int)'
prog.cpp:18:40: error: expression list treated as compound expression in initializer [-fpermissive]
decltype(m(bar::foo)) test2('a', 13))
^
prog.cpp:18:41: error: expected ',' or ';' before ')' token
decltype(m(bar::foo)) test2('a', 13))
^