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.
The test example: ---- int function(char* __restrict__* __restrict__ p1, char* __restrict__* __restrict__ p2) { return 0; } int main(int argc, char** argv) { char *str_a = argv[1]; char *str_b = argv[2]; return function(&str_a, &str_b); } ---- GCC can compile this code without a complain. But, Netbeans editor indicates unexpected token __restrict__ in the declaration of function(). It seems that it cannot parse double indirect restricted pointers.
It seems the bug #216070 is a duplicate of this. (At least a fix will be common)
*** Bug 216070 has been marked as a duplicate of this bug. ***
(In reply to Alexander Simon from comment #2) > *** Bug 216070 has been marked as a duplicate of this bug. *** Declarations containing restrict qualifiers are sometimes displayed as errors although they are correct, for example int *restrict *restrict p1; or typedef int *intptr_t; restrict intptr_t p2; (in a C file, with "C standard" in the project settings set to C99)(In reply to Alexander Simon from comment #2) > *** Bug 216070 has been marked as a duplicate of this bug. ***
confirmed
Created attachment 162204 [details] Screenshot of "unexpected token: restrict" error. It is also the same problem with "restrict" keyword. And because of this NetBeans unable to resolve appropriate function (see screenshot). And it is impossible to use cool Refactor->Rename NetBeans feature.