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 254671 - IDE can't parse STL (default compiler in Ubuntu 15.10)
Summary: IDE can't parse STL (default compiler in Ubuntu 15.10)
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: PC Linux
: P1 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-24 21:35 UTC by soldatov
Modified: 2015-10-04 19:08 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
file after "g++ -std=c++03 -E" (234.71 KB, text/plain)
2015-08-25 10:39 UTC, soldatov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2015-08-24 21:35:14 UTC
NetBeans IDE Dev (Build 201508240002)
Ubuntu 15.10 daily build
g++ (Ubuntu 5.2.1-15ubuntu2) 5.2.1 20150808

================================================
#include <string>

using namespace std;

int main(int argc, char** argv) {
    string s = "zzz"; // unresolved identifier
    return 0;
}

================================================

#include <list>

using namespace std;

int main(int argc, char** argv) {
    list<int> s; // unresolved identifier
    s.push_back(1); // unresolved identifier
    return 0;
}

================================================
Comment 1 soldatov 2015-08-25 09:29:12 UTC
NetBeans 8.0.2 doesn't recognize GCC 5.2.1 headers too
Comment 2 soldatov 2015-08-25 10:25:40 UTC
Instead of std::string I see std::__cxx11::string

Ubuntu builds: http://cdimage.ubuntu.com/daily-live/current/
Comment 3 soldatov 2015-08-25 10:39:46 UTC
Created attachment 155609 [details]
file after "g++ -std=c++03 -E"
Comment 4 petrk 2015-08-26 17:11:15 UTC
Fixed in http://hg.netbeans.org/cnd-main/rev/4221375f461c
Comment 5 petrk 2015-08-27 15:07:41 UTC
Additional fix (test case): http://hg.netbeans.org/cnd-main/rev/08411d26bd78
Comment 6 Quality Engineering 2015-08-28 01:24:19 UTC
Integrated into 'main-silver', will be available in build *201508280002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/4221375f461c
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixed #254671 - IDE can't parse STL (default compiler in Ubuntu 15.10)
Comment 7 soldatov 2015-08-30 12:53:42 UTC
In 201508300002 Code Assistance doesn't work too.
Comment 8 Quality Engineering 2015-09-05 03:03:52 UTC
Integrated into 'main-silver', will be available in build *201509050002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/c807b63ed7e4
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Additional fix for #254671 - IDE can't parse STL (default compiler in Ubuntu 15.10)
Comment 10 Quality Engineering 2015-09-07 01:18:13 UTC
Integrated into 'main-silver', will be available in build *201509070002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/9f332735d3d0
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Additional fix for #254671 - IDE can't parse STL (default compiler in Ubuntu 15.10)
Comment 11 soldatov 2015-09-07 09:28:45 UTC
Verified in NetBeans IDE Dev (Build 201509070002)
Comment 12 Quality Engineering 2015-09-09 01:23:17 UTC
Integrated into 'main-silver', will be available in build *201509090002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/c38c8c1ac5ed
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Additional fix for #254671 - IDE can't parse STL (default compiler in Ubuntu 15.10)
-- test case
Comment 13 vertago1 2015-10-04 18:59:22 UTC
I downloaded 201510040002 and the problem with code assistance and stl is definitely better on Ubuntu 15.10, but there still seem to be problems. For example istringstream.good() isn't recognized and causes an "Unable to resolve identifier good". The same problem shows up for ostringstream.str() which isn't a surprise since the are from the same library.

I haven't contributed before to the netbeans codebase, but I won't mind writing a test or trying to help if there are documentation/resources I could use to get started relatively quickly.