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 - Nested functions perceives as unknown identifiers
Summary: Nested functions perceives as unknown identifiers
Status: RESOLVED DUPLICATE of bug 238041
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: issues@cnd
URL:
Keywords:
: 220910 235381 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-09-19 19:11 UTC by nazggul
Modified: 2013-12-16 08:54 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***