This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
will end up changing both friend class and friend function behavior. So changes for friend function part is necessary as well.
namespace N { class B; }
class N::B {
friend void f();
};Throughout libjava, it is assumed that the function 'f' above refers to the function in the global namespace, but it should belong to namespace N. To correct this the declarations are changed to the form:
namespace N { class B; }
void f(); // Declaration so that we can use qualified name
// in the friend declaration.
class N::B {
friend void ::f();
};Attachment:
diff-java-ffriend-3
Description: application/java-vm
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |