[ERROR]
The friend specifier can only be used for classes (or structures or unions) and functions.
typedef int I;
struct A {
friend I; // illegal
};
Use the friend specifier only for classes (or structures or unions) and functions.