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 216617 - Unresolved identifier when indexing struct array with postfixed struct member
Summary: Unresolved identifier when indexing struct array with postfixed struct member
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.2
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-09 15:27 UTC by LAndrew
Modified: 2016-10-31 10:10 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 LAndrew 2012-08-09 15:27:37 UTC
struct foo
{
    int a;
    int b;
};

void test()
{
    foo bar;
    foo buffer[3];

    buffer[bar.a].b = 0;       //OK
    buffer[++bar.a].b = 0;     //also OK
    buffer[bar.a++].b = 0;     //unable to resolve 'b'
}