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.

Bug 78680 - *Code Model* parser error on "typeof"
Summary: *Code Model* parser error on "typeof"
Status: CLOSED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
: 77685 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-06-20 21:49 UTC by Vladimir Voskresensky
Modified: 2010-02-01 10:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Voskresensky 2006-06-20 21:49:41 UTC
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
Comment 1 Vladimir Voskresensky 2006-06-20 21:54:57 UTC
*** Issue 77685 has been marked as a duplicate of this issue. ***
Comment 2 Vladimir Voskresensky 2006-06-20 22:25:10 UTC
fixed by adding support of typeof on lexer level and updating rule
declaration_specifiers.