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 206653

Summary: Code Assist reparse project repeatedly needed (c++11)
Product: cnd Reporter: ldemailly
Component: Code ModelAssignee: issues@cnd <issues>
Status: RESOLVED INCOMPLETE    
Severity: normal    
Priority: P3    
Version: 7.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 179939    
Bug Blocks:    

Description ldemailly 2011-12-22 23:30:32 UTC
Product Version = NetBeans IDE 7.1 RC2 (Build 201111302200)
Operating System = Linux version 2.6.33-7_fbk20_088d4b7 running on amd64
Java; VM; Vendor = 1.6.0_24
Runtime = Java HotSpot(TM) 64-Bit Server VM 19.1-b02

I have a simple/sample project which needs c++11 (
right click on project: properties; code assistance; C++ compiler; preprocessor Definitions (even though it's not a -D...); add "-std=gnu++0x"  )
and I need to right click project, code assistance; reparse project each time I launch netbeans or it has "red" (errors) on c++11 constructs like thread )

sample code:
#include <iostream>
#include <thread>
#include <vector>
#include <sstream>

using namespace std;

int main() {
  vector<thread> threads;
  for (int i = 0; i < 10; ++i) {
    char* cmd = new char[64];
    sprintf(cmd, "echo %d", i);
    threads.push_back(thread([cmd](){
          ostringstream oss;
          oss << "cmd " << cmd << endl;
          cout << oss.str();
          system(cmd);
          delete []cmd;
        }));
  }
 for (auto& t : threads) {
     t.join();
  }
}


maybe it's because there is a better way to enable c++ 11 parsing ? (actually it would be nice that that'd be a check box somewhere - maybe it is and I missed it)

this is using
$ g++ --version
g++ (GCC) 4.6.2 20111027 (Red Hat 4.6.2-1)

Thanks
Comment 1 ldemailly 2012-01-03 21:49:23 UTC
Happy New Year !

Any idea ?

Thanks
Comment 2 soldatov 2012-01-04 08:56:33 UTC
issue 179939 is not started yet
Comment 3 Alexander Simon 2012-05-17 11:39:17 UTC
Closed as incomplete because bug #179939 was fixed.
Please, reopen issue if it is still reproducible.