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.2 (Build 201705191307) Operating System = Windows 7 version 6.1 running on amd64 Java; VM; Vendor = 1.8.0_111 Runtime = Java HotSpot(TM) 64-Bit Server VM 25.111-b14 Reproducibility: Happens every time STEPS: * Open C++ File ACTUAL: Various constructs are marked as errors and they are not. EXPECTED: Error free viewing For the last, oh, maybe ten (10) years Netbeans has flagged legal staements as error. Some of the example code is below: ---------- All instances of "this->flags" is marked as "unable to resolve identifier flags" class Flags { const uint allFlags; const uint SHIFT; uint state = 0; uint flags; public: Flags(uint allFlags, const uint SHIFT) : allFlags(allFlags), SHIFT(SHIFT), flags(0) { } uint flag() { return flags; } uint index(){ return (flag() >> SHIFT); } int getAllFlags() { return allFlags; } uint getFlags() { return flags; } uint setFlags(uint flags) { if (flags) this->flags | flags; else if (!state) this->flags = allFlags; state++; return this->flags; } }; ----- All instances of" str.c_str() " and "str.size()" is marked as "unable to resolve identifer c_str() size()" string str; while((str = parseOptions(in)).size()) { if (!strncmp(str.c_str(), "bins", str.size())) workingFlags |= OPTION_BINS; else if (!strncmp(str.c_str(), "map", str.size())) workingFlags |= OPTION_MAP; else if (!strncmp(str.c_str(), "node", str.size())) workingFlags |= OPTION_NODE; else if (!strncmp(str.c_str(), "statistics", str.size())) workingFlags |= OPTION_STAT; and so on.
Created attachment 164985 [details] IDE log