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.
From CR 6996634: "static" in function definition is not allowed by compiler, parser of source editor did not dectect this error declaration: static const MachineType * derive_machine_type(pid_t, bool data_model = false); definition: static const MachineType * derive_machine_type(pid_t, bool data_model = false) { } *** (#1 of 1): 2010-11-01 16:05:34 PDT chihin
"static" modifier for function declaration means "compilation unit local function". compiles just fine: --------------- static void foo(); /* * */ int main(int argc, char** argv) { return 0; } static void foo() { }
corrected test case from Jean (now with C++ constructions) class A { public: static void foo(); }; /* * */ int main(int argc, char** argv) { return 0; } static void A::foo() { }