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 268260 - Auto complete fails and shows error on vector of vectors when they are written in a certain way
Summary: Auto complete fails and shows error on vector of vectors when they are writte...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: PC Other
: P3 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-28 23:10 UTC by antoniocs
Modified: 2016-09-29 19:03 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 antoniocs 2016-09-28 23:10:11 UTC
I have a project that I started from existing sources and the following line triggers an error in the variable name (it compiles fine):

vector<vector<int>> a;

The a is selected in red.

But if I have this:

vector< vector<int> > a; // note the spaces

Everything works. Even the auto complete


Product Version: NetBeans IDE 8.1 (Build 201510222201)
Updates: NetBeans IDE is updated to version NetBeans 8.1 Patch 1
Java: 1.8.0_66; Java HotSpot(TM) 64-Bit Server VM 25.66-b18
Runtime: Java(TM) SE Runtime Environment 1.8.0_66-b18
System: Windows 10 version 10.0 running on amd64; Cp1252; en_GB (nb)
Comment 1 petrk 2016-09-29 16:18:10 UTC
Please, provide more details. The sample project if possible. Right now it seems that you use C++98 standard. In C++11 mode no red underlining present in Dev version of NetBeans. Maybe, this is a bug on build system, if standard was not determined correctly (since it is a project from existing sources). Can you, please, explain how did you create it?
Comment 2 antoniocs 2016-09-29 19:03:14 UTC
It seems that this was the issue. I was using a custom makefile so I didn't see any issue compiling.

I switched to c++14 and there is no more issue.

Thanks!