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 269245 - Static array indices in parameter declarations not recognized
Summary: Static array indices in parameter declarations not recognized
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.2
Hardware: Macintosh (x86) Mac OS X
: P3 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-05 22:16 UTC by MikeGrobler
Modified: 2017-04-24 20:35 UTC (History)
0 users

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 MikeGrobler 2016-12-05 22:16:43 UTC
When editing C code a function that contains a static array index in parameter declarations is not recognized and causes parameter following the declaration to be unresolved. This feature has been around since C99.My compiler version is GCC 4.5 or later and I have configured NB to compile using C11.

int foo(int8_t array1[static 20], int *a, int b) {
}

The parameter array1 is not resolved and so are a and b. 
When I remove the '[static 20]' everything resolves correctly.
Comment 1 petrk 2017-04-03 11:51:25 UTC
Fixed at enum: 315119:27016069f105
Comment 2 Quality Engineering 2017-04-11 01:52:27 UTC
Integrated into 'main-silver', will be available in build *201704110002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/919b148dfad4
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixed #269245 - Static array indices in parameter declarations not recognized
(transplanted from 27016069f1053d65bd49617d6f9d760122ea86ec)
Comment 3 ilia 2017-04-13 11:00:45 UTC
https://netbeans.org/bugzilla/show_bug.cgi?id=269245 Changesets:
    http://hg.netbeans.org/releases/rev/27016069f105 # Fixed #269245 - Static array indices in parameter declarations not recognized
Comment 4 soldatov 2017-04-24 20:35:38 UTC
Verified in NetBeans IDE 8.2 (Build 201704241609)