#include <iostream> using namespace std; class T { friend void ko() { auto a=this; } }; int main() { return 0; }
Standard input is empty
prog.cpp: In function 'void ko()': prog.cpp:9:10: error: invalid use of 'this' in non-member function prog.cpp:9:10: error: unable to deduce 'auto' from '<expression error>'
Standard output is empty