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 - Less user-friendly code completoin in Oracle Solaris Studio
Summary: Less user-friendly code completoin in Oracle Solaris Studio
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.2
Hardware: PC Solaris
: P3 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-04 13:33 UTC by soldatov
Modified: 2016-07-22 14:59 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-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"