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.
Try the following code. It will give you a red underline for ".sum()" However it runs normally! #include <cstdlib> #include<iostream> #include<string> #include<cstring> #include<vector> #include<algorithm> #include<iterator> #include<valarray> #include<cmath> using namespace std; int main() { double val2[]={1,2,3,4,5}; valarray<double>va5(val2,5); valarray<double>va6= 2.0*(va5); valarray<double>va7=pow(2.0,va5); cout<<pow(va5,1.0).sum()<<endl; cout<<pow(va5,va6).sum()<<endl; return 0; }
Please, do not touch component. A root cause of the issue is a bug in code model.
it works fine for me in trunk