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

Summary: [73cat] Unexpected token const.
Product: cnd Reporter: kosmonaffft
Component: Code ModelAssignee: nnnnnk <nnnnnk>
Status: CLOSED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: Other   
Issue Type: DEFECT Exception Reporter:
Attachments: Unexpected const.
Invalid code AST.

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 ***