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.
This is related with issue 268419. The specific problem issue 268419 was filed for has been fixed. But there is another similar problem. Since root cause is different, I'm filing a separate bug instead of reopening old one. User complains that in the following code if you change vector<int> a; to std::vector<int> a; then IDE underlines it red #include <iostream> #include <vector> using namespace std; int main(int argc, char** argv) { vector<int> a; //if you add std:: netbeans will highlight it as an error for (int i = 0; i < 10; i++) { a.push_back(i); } for (int i : a) { std::cout << i << " "; } std::cout << std::endl; return 0; }
Product Version: NetBeans IDE Dev (Build 201610140002) Java: 1.8.0_101; Java HotSpot(TM) 64-Bit Server VM 25.101-b13 Runtime: Java(TM) SE Runtime Environment 1.8.0_101-b13 System: Windows 10 version 10.0 running on amd64; Cp1252; en_GB (nb) I can now use std::string but I can't use std::vector (and std::string works even if I don't include the <string> header) I have attached a screenshot 2 screenshots. The attachment "std::vector error" shows netbeans highlighting an error which is not an error. The attachment "vector now works with using namespace std;" shows how adding namespace magically fixes everything. Both versions compile just fine by doing: g++ -Wall -g -std=c++14 -o vec_test vec_test.cpp
Created attachment 162551 [details] The attachment "netbeans_cpp_std_vector_bug.png" shows netbeans highlighting an error which is not an error.
Created attachment 162552 [details] The attachment "netbeans_cpp_std_vector_no_bug_using_std.png" shows how adding namespace magically fixes everything
Unfortunately I wasn't able to reproduce this neither with my current build nor in dev version taken from http://bits.netbeans.org/dev/nightly/2016-10-14_00-02-33 I used ubuntu 16.10 with gcc 6.2.0 I used full remote project
Alexander, please, help to investigate
Vladimir, I cant fix unreproducible bug. Please provide steps to reproduce.