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.
Created attachment 156670 [details] Showing wrong struct completion I have an issue with code completion in a compound statement struct being passed to a function that returns another struct Here is the line of code where I have the problem: struct FindResult *res = FindNodeBase(&((struct LLFindNodeBaseParams) { .ll = ll, .next = nodeNext })); Here is the struct FindResult: struct FindResult { LinkedListNode *prev; LinkedListNode *node; }; Here is the struct LLFindNodeBaseParams: struct LLFindNodeBaseParams { LinkedList *ll; void *data; LLFindCompareFuncPtr compareFunc; LinkedListNode *node; LinkedListNode *next; }; And here is the prototype for FindNodeBase: static struct FindResult *FindNodeBase(struct LLFindNodeBaseParams *); As you can see it takes in a struct LLFindNodeBaseParams pointer and returns a pointer to struct FindResult. So when I start typing (struct LLFindNodeBaseParams) { . inside the parameters list of FindNodeBase I am getting the parameters list from struct FindResult. (I have attached a picture) If I compile the code everything is fine and if I just create a variable of type struct LLFindNodeBaseParams I get the correct code completion.
Created attachment 156671 [details] Correct code completion
Thanks for the report
*** This bug has been marked as a duplicate of bug 257822 ***