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.
Product Version = NetBeans IDE 8.1 (Build 201510222201) Operating System = Linux version 4.2.0-18-generic running on amd64 Java; VM; Vendor = 1.7.0_85 Runtime = OpenJDK 64-Bit Server VM 24.85-b03 Reproducibility: Happens every time STEPS: * Create a (remote) C++ project * add the following union: union Fields { struct { DictField *REG, *OWN, *DEPDLY, *ARVDLY, *CXX, *SRCSP; } fields; DictField* all[sizeof(fields) / sizeof(DictField*)]; static int getFieldCount() { return sizeof(all) / sizeof(all[0]); } }; ACTUAL: Code assistant says (for sizeof(all) and sizeof(all[0])): Unable to resolve identifier 'all' EXPECTED: In a sizeof expression don't bother whether the referenced field is static or not if its sizeof is constant