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 218193 - Unexpected token typedef
Summary: Unexpected token typedef
Status: CLOSED DUPLICATE of bug 217052
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.2
Hardware: PC Windows 8 x64
: P3 normal (vote)
Assignee: nnnnnk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-12 08:45 UTC by kosmonaffft
Modified: 2012-10-21 17:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Unexpected typedef. (113.43 KB, image/png)
2012-09-12 08:45 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 08:45:48 UTC
Created attachment 124219 [details]
Unexpected typedef.

Unexpected token typedef.
See attachment.

Version from mercurial, 737c21309850
Comment 1 soldatov 2012-09-12 08:55:16 UTC
Sorry. Do you use NetBeans on Windows 8?
Comment 2 kosmonaffft 2012-09-12 09:23:40 UTC
Yes, I use it on Windows 8 Release Preview.
Comment 3 kosmonaffft 2012-09-12 09:38:57 UTC
Also i've found this bug on 7.2 release version (project and source code is same).
Comment 4 nnnnnk 2012-09-20 16:04:27 UTC
It looks like you've missed C++11 option in project properties (Project Properties->Build->C++ Compiler->C++ Standard).
So ">>" breaks the parser.
Comment 5 kosmonaffft 2012-09-20 17:11:23 UTC
The probability of this is very small, after project creation i always set C++ standard to C++11. Is it possible that NB try to parse file with old C++ standars after i set it in project options?

(In reply to comment #4)
> It looks like you've missed C++11 option in project properties (Project
> Properties->Build->C++ Compiler->C++ Standard).
> So ">>" breaks the parser.
Comment 6 nnnnnk 2012-10-12 12:46:50 UTC
Please, try
-J-Dcnd.language.flavor.cpp11=true

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

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