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 218198 - [73cat] Unexpected token const.
Summary: [73cat] Unexpected token const.
Status: CLOSED DUPLICATE of bug 217052
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.3
Hardware: PC Other
: P3 normal (vote)
Assignee: nnnnnk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-12 09:31 UTC by kosmonaffft
Modified: 2012-10-21 17:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Unexpected const. (109.84 KB, image/png)
2012-09-12 09:31 UTC, kosmonaffft
Details
Invalid code AST. (240.68 KB, image/png)
2012-10-02 10:00 UTC, kosmonaffft
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kosmonaffft 2012-09-12 09:31:50 UTC
Created attachment 124225 [details]
Unexpected const.

Unexpected token const.
See attachment.

Version from mercurial, 737c21309850
Comment 1 kosmonaffft 2012-09-12 09:39:11 UTC
Also i've found this bug on 7.2 release version (project and source code is same).
Comment 2 nnnnnk 2012-09-20 16:06:14 UTC
Hello,

Is it present if you comment destructor?
Comment 3 kosmonaffft 2012-09-20 17:15:58 UTC
Hello. Yes, I've just checked, it is present with commented destructor.

(In reply to comment #2)
> Hello,
> 
> Is it present if you comment destructor?
Comment 4 kosmonaffft 2012-10-02 10:00:35 UTC
Created attachment 125204 [details]
Invalid code AST.

Looks like NB try to parse methods as fields.
Comment 5 nnnnnk 2012-10-12 12:46:30 UTC
Please, try
-J-Dcnd.language.flavor.cpp11=true

If it would help, then it's a problem in project setup.
Comment 6 nnnnnk 2012-10-18 13:34:12 UTC

*** This bug has been marked as a duplicate of bug 217052 ***