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 267501 - Unresolved identifiers in editor on MacOSX (check C++11 STL API)
Summary: Unresolved identifiers in editor on MacOSX (check C++11 STL API)
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.2
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-09 11:14 UTC by soldatov
Modified: 2016-09-01 14:27 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 soldatov 2016-08-09 11:14:27 UTC
Test checks all C++11 containers and all methods in each container. Current state on MacOSX

"array.cpp" file is a valid
"priority_queue.cpp" file is a valid
"queue.cpp" file is a valid
"stack.cpp" file is a valid
java.lang.Exception: Errors in "deque.cpp" file!!! Wait no any errors or warnings. Real: 4
java.lang.Exception: Errors in "forward_list.cpp" file!!! Wait no any errors or warnings. Real: 11
java.lang.Exception: Errors in "list.cpp" file!!! Wait no any errors or warnings. Real: 4
java.lang.Exception: Errors in "map.cpp" file!!! Wait no any errors or warnings. Real: 4
java.lang.Exception: Errors in "multimap.cpp" file!!! Wait no any errors or warnings. Real: 15
java.lang.Exception: Errors in "multiset.cpp" file!!! Wait no any errors or warnings. Real: 5
java.lang.Exception: Errors in "set.cpp" file!!! Wait no any errors or warnings. Real: 5
java.lang.Exception: Errors in "unordered_map.cpp" file!!! Wait no any errors or warnings. Real: 17
java.lang.Exception: Errors in "unordered_multimap.cpp" file!!! Wait no any errors or warnings. Real: 17
java.lang.Exception: Errors in "unordered_multiset.cpp" file!!! Wait no any errors or warnings. Real: 17
java.lang.Exception: Errors in "unordered_set.cpp" file!!! Wait no any errors or warnings. Real: 17
java.lang.Exception: Errors in "vector.cpp" file!!! Wait no any errors or warnings. Real: 4

Some of bugs you can see in this test case:
#include <deque>
#include <vector>

class Object {
public:
    void getI() const {}
};

int main(int argc, char** argv) {
    std::deque<Object> deque_test;
    deque_test.rbegin()->getI(); // Unable to resolve identifier getI.
    deque_test.crbegin()->getI(); // Unable to resolve identifier getI.
    deque_test.rend()->getI(); // Unable to resolve identifier getI.
    deque_test.crend()->getI(); // Unable to resolve identifier getI.
    deque_test.erase(deque_test.begin(), deque_test.begin() + 1)->getI(); // fails on sparc solaris only

    std::vector<Object> vector_test;
    vector_test.get_allocator().destroy(&vector_test[5]); // Unable to resolve template based identifier destroy.

    return 0;
}