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.
Created attachment 124217 [details] stack In inaccuracy tests, there is the following exception: java.lang.Exception: attempt to put local declaration FUNCTION_FRIEND_DEFINITION fun(fun)[1101-1125][E11086.C 38:17-38:41] [38:17-38:41] at org.netbeans.modules.cnd.modelimpl.content.project.DeclarationContainer.putDeclaration(DeclarationContainer.java:159) at org.netbeans.modules.cnd.modelimpl.csm.NamespaceImpl.addDeclaration(NamespaceImpl.java:494) at org.netbeans.modules.cnd.modelimpl.csm.ClassImpl$ClassAstRenderer.render(ClassImpl.java:951) This causes another exception: java.lang.ClassCastException: org.netbeans.modules.cnd.modelimpl.uid.UIDProviderIml$SelfUID cannot be cast to org.netbeans.modules.cnd.repository.support.SelfPersistent
Created attachment 124218 [details] The second stack concerning ClassCastException
Created attachment 124220 [details] Exception: Too many loops in resolver!!! Exception: Too many loops in resolver!!! I guess is caused by other ones
A simple example to reproduce: void foo(void); int main() { class C1 { friend void foo(void); }; } class C2 { friend void foo(void); };
I excluded this file from inaccuracy tests
fixed: http://hg.netbeans.org/cnd-main/rev/3c0be7fdaeaa