1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
class A { struct MY { int a; }; friend void doSomething(A); }; void doSomething(A) { MY *b; } int main() { return 0; }
1 2 3
In function 'void doSomething(A)': Line 12: error: 'MY' was not declared in this scope compilation terminated due to -Wfatal-errors.