This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/26783] New: friend functions defined in-class not added to enclosing namespace
- From: "squell at alumina dot nl" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Mar 2006 16:12:41 -0000
- Subject: [Bug c++/26783] New: friend functions defined in-class not added to enclosing namespace
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
namespace foo {
class obj {
friend void create() { }
};
}
int main()
{
foo::create();
}
test.cpp: In function 'int main()':
test.cpp:9: error: 'create' is not a member of 'foo'
--
Summary: friend functions defined in-class not added to enclosing
namespace
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: squell at alumina dot nl
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26783