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 85622 - parser does not accept ptr to array of int* in func prototype
Summary: parser does not accept ptr to array of int* in func prototype
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 5.x
Hardware: Sun All
: P1 blocker (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-23 02:31 UTC by mkapoor
Modified: 2006-09-28 11:31 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 mkapoor 2006-09-23 02:31:21 UTC
The following test case does not compile

% cat t.c
extern int foo (int *(*[]));

% tracemodel.sh t.c
t.c:1:17: unexpected token: int
t.c:1:23: unexpected token: *
t.c:1:25: expecting RPAREN, found ']'
t.c:1:27: unexpected token: )
Comment 1 mkapoor 2006-09-27 18:00:22 UTC
Can't compile JVM HotSpot sources because of this bug.
Comment 2 alms 2006-09-28 11:31:58 UTC
Fixed by updating rule 'abstract_declarator'

[cvs]
Checking in cppparser.g;
/shared/data/ccvs/repository/cnd/modelimpl/src/org/netbeans/modules/cnd/modelimpl/antlr2/cppparser.g,v
 <--  cppparser.g
new revision: 1.2.2.18; previous revision: 1.2.2.17
done