[ create a new paste ] login | about

Link: http://codepad.org/ndbzaakM    [ raw code | output | fork ]

C++, pasted on Nov 22:
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;
}


Output:
1
2
3
In function 'void doSomething(A)':
Line 12: error: 'MY' was not declared in this scope
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: