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.
struct _Validation { unsigned char signature1; unsigned char signature2; }; typedef union { unsigned char data [2]; struct _Validation; //<---- This is marked with unresolved ident. } EEPROM_DATA; void main(void) { EEPROM_DATA edata; edata.data [0] = 0xAA; // This is ok edata.signature2 = 0xDD; // <---- This is marked with unresolved ident. }
It is worth to mention that it is MS extension. GCC can compile this code with "-fms-extensions" flag.
Yes GCC compiler will compile without warning using -fms-extensions. But CND parsing for editor still marks the expression with error. Is that not separate and independent of compiler options?
You are right "-fms-extensions" option doesn't affect on IDE parser. I just meant that this construction (anonymous nested structure _Validation) is an extension. Therefore this bug is not the highest priority for us right now.