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.

Bug 147758

Summary: Nested functions perceives as unknown identifiers
Product: cnd Reporter: nazggul <nazggul>
Component: Code ModelAssignee: issues@cnd <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker CC: misha_shar53
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description nazggul 2008-09-19 19:11:53 UTC
Hi,
When I'm writing a nested functions, I get an 'Unable to resolve identifier' error. There is a small sample code:

#include <stdio.h>

int main (int argc, char** argv)
{
  int foo ()
    {
      return 5;
    }
  printf ("%d\n", foo ());
  return 0;
}

This code is correct but NB tells me that it is unable to resolve symbol 'foo'.
Comment 1 Alexey Vladykin 2008-09-22 15:58:10 UTC
Thank you for report. Indeed we do not support nested functions yet.
Comment 2 nnnnnk 2009-09-18 17:36:31 UTC
Nested functions are allowed only in C and works only with GCC.
I think it's P4.
Comment 3 coops 2012-08-13 17:57:46 UTC
So when will you fix this....? 6.9 was a while ago.
Comment 4 Leonid Lenyashin 2012-10-26 11:59:11 UTC
*** Bug 220910 has been marked as a duplicate of this bug. ***
Comment 5 Vladimir Voskresensky 2013-09-02 12:16:30 UTC
*** Bug 235381 has been marked as a duplicate of this bug. ***
Comment 6 petrk 2013-12-16 08:54:56 UTC

*** This bug has been marked as a duplicate of bug 238041 ***