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 200141

Summary: Unresolved ids in initializers
Product: cnd Reporter: nnnnnk <nnnnnk>
Component: Code ModelAssignee: nnnnnk <nnnnnk>
Status: VERIFIED FIXED    
Severity: normal CC: mmirilovic
Priority: P3    
Version: 7.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description nnnnnk 2011-07-14 13:54:00 UTC
Sample:
typedef struct _A{
    int v;
} A;
typedef struct _B{
	char *	a;
	void *	b;
} B;
B t[] = {
	{ .a = "s", .b = & (A) { .v = 1}  },
	{ .a = "d", .b = & (A) { .v = 1 } },
	{ .a = "e", .b = & (A) { .v = 1 } },
	{ .a = 0 }
};
Comment 1 yuriy_lalym 2011-07-16 11:46:26 UTC
But it only for C.
For C ++ - expected primary-expression before ‘. ’ token
Comment 3 dnikitin 2011-08-10 11:53:53 UTC
verified in NetBeans IDE Dev (Build cnd-build-trunk-279-on-20110810)
Comment 4 Alexander Simon 2011-08-15 10:11:47 UTC
fix transplanted in release701_fixes on elif:
0abd001395e8 transplanted to 260d09bac826
Comment 5 dnikitin 2011-08-18 12:35:02 UTC
Verified in NetBeans IDE 7.0.1 (Build oss-platform-build-22-on-20110818)
Comment 6 Alexander Simon 2011-08-24 11:35:51 UTC
integrated in release701_fixes:
260d09bac826 transplanted to 7e4ed4bdaace
Comment 7 soldatov 2011-08-29 10:32:26 UTC
verified