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 259123

Summary: Less user-friendly code completoin in Oracle Solaris Studio
Product: cnd Reporter: soldatov <soldatov>
Component: Code ModelAssignee: petrk
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Solaris   
Issue Type: DEFECT Exception Reporter:

Description soldatov 2016-05-04 13:33:41 UTC
===========================================================================
#include <vector>

using namespace std;

class A {
public:
    int i;
    A(int i) : i(i) {};
};

int main(int argc, char** argv) {
    vector<A> v;
    v.push_back(A(1));
    // ok, if I use GCC
    // ok, if I use Oracle Solaris Studio with -std=c++11
    // bad value if I use Oracle Solaris Studio with default flags
    return 0;
}

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

Scenario:
- Create project
- Add my c++ example
- Call Code Completion after "v.push_b"
==>
If current compiler is a Oracle Solaris Studio I see "push_back (const bool& x) void"!!!
If current compiler is a GCC or Oracle Solaris Studio in C++03/C++11 modes "I see "push_back (const A& __x) void"