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.
Steps to reproduce: - create a new application - add C file with the following code: #include <stdlib.h> enum color { RED, YELLOW, GREEN, BLUE }; enum shape { CIRCLE, SQUARE, TRIANGLE }; struct cnode { enum color paint; struct cnode* next; } main() { struct cnode paintpot; struct cnode* ptemp=0 ; enum shape object; paintpot.paint = RED; paintpot.next = ptemp; object = CIRCLE; } Result: A lot of unresolved identifiers red signs appear whereas the file can be built successfully. To fix the problem a user should type semicolon after struct code definition: struct cnode { enum color paint; struct cnode* next; }; but without a semicolon it's still valid C code.
Here struct cnode is a main return type. If you add "int" before main code will be uncompilable. I guess it's a P4.