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 236816 - Unable to resolve standard C++ identifiers
Summary: Unable to resolve standard C++ identifiers
Status: RESOLVED INCOMPLETE
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.3.1
Hardware: PC Windows 7
: P4 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-07 01:09 UTC by Phillipe
Modified: 2013-10-11 12:21 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 Phillipe 2013-10-07 01:09:34 UTC
Here's a code snippet:

#include <iostream> 
#include <sstream> 
#include <string>

using namespace std; 

int main(void) 
{ 
    stringstream ss("bla  a bla"); 
    string s; 
    
    while (getline(ss, s, ' ')) 
    { 
        if(!s.empty())  //unable to resolve identifier "empty"
        {
            cout << s << endl; 
        }
    } 
    
    cin.ignore(2);   //unable to resolve identifier "ignore"
    return 0; 
}

The code compiles just fine. It also happens with ifstream stuff such as open, is_open and close.
Comment 1 petrk 2013-10-10 15:15:19 UTC
Works in trunk (tested with headers from gcc 4.6.3). Could you please check development version in your environment on Windows 7?
Comment 2 Phillipe 2013-10-10 18:10:14 UTC
(In reply to petrk from comment #1)
> Works in trunk (tested with headers from gcc 4.6.3). Could you please check
> development version in your environment on Windows 7?

I'm testing it on gcc 4.8.1 with IDE version 7.3.1. Where can I get the dev version?
Comment 3 petrk 2013-10-11 12:21:56 UTC
You can download it from http://bits.netbeans.org/download/trunk/nightly/latest/