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.
Following test case (typeof.cpp): typedef struct __locale_struct { } *__locale_t; extern __locale_t uselocale (__locale_t __dataset) throw (); namespace cxx { typeof(uselocale) __uselocale__; extern "C" __typeof(uselocale) __uselocale; extern "C" __typeof__(uselocale) ul; } Cause parsers errors: typeof.cpp:9:21: unexpected token: __uselocale__ typeof.cpp:10:34: unexpected token: __uselocale typeof.cpp:11:36: unexpected token: ul More info about typeof in gcc: http://developer.apple.com/documentation/DeveloperTools/gcc-4.0.1/gcc/Typeof.html
*** Issue 77685 has been marked as a duplicate of this issue. ***
fixed by adding support of typeof on lexer level and updating rule declaration_specifiers.