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.
=========================================================================== #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"