This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
#include <iostream> template<class T> class A { private: void ma() { std::cout << "ok" << std::endl; } friend void T::mb(); }; class B { private: A<B>* p_; public: B(A<B>* p) : p_(p) {} void mb() { p_->ma(); // invalid identifier } }; int main(int argc, char *argv[]) { A<B> a; B b(&a); b.mb(); return 0; }
confirmed