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 246679 - C99: nested c99 initializer
Summary: C99: nested c99 initializer
Status: RESOLVED DUPLICATE of bug 255328
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.0
Hardware: PC Solaris
: P3 normal (vote)
Assignee: petrk
URL:
Keywords:
: 224366 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-08-25 15:34 UTC by Alexander Simon
Modified: 2015-11-11 15:58 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 Alexander Simon 2014-08-25 15:34:37 UTC
Unable to resolve identifier a1
Unable to resolve identifier a2

C code:

typedef struct A {
    int a1;
    int a2;
} A;

typedef struct B {
    A a[10];
} B;

B b[] = {[2] = {.a[3] = {.a1 = 111, .a2 = 222}}};

int main() {
    return 0;
}
Comment 1 petrk 2015-10-27 19:51:49 UTC

*** This bug has been marked as a duplicate of bug 255328 ***
Comment 2 petrk 2015-11-11 15:58:57 UTC
*** Bug 224366 has been marked as a duplicate of this bug. ***