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.
Example struct_casting.cc: #include <malloc.h> static struct default_include { char *fname; int cplusplus; int cxx_aware; } include_defaults_array[] = { { 0, 1, 1 }, { 0, 0, 0 } }; static struct default_include *include_defaults = include_defaults_array; int main() { int num_dirs = 4; include_defaults = (struct default_include *) malloc ((num_dirs * sizeof (default_include)) + sizeof (include_defaults_array)); return 1; } Failed in parser with messages: Processing files: struct_cast.cc] struct_cast.cc:18:11: unexpected token: ( struct_cast.cc:18:36: unexpected token: ) struct_cast.cc:19:74: expecting SEMICOLON, found ')' struct_cast.cc:20:80: expecting SEMICOLON, found ')'
fixed in parser's grammar by updating rule cast_expression
Verified with Netabeans6.0.