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.
Created attachment 164890 [details] Showing error in editor Hello, I have this bit of code: #include <string> #include <utility> std::pair<std::string, std::string> testeFunc() { return std::make_pair(std::string("test1"),std::string("test1")); } int main(int argc, char** argv) { auto x = testeFunc().first.empty(); return 0; } With this everything works fine but if I change the testeFunc() return type to auto, like this: #include <string> #include <utility> auto testeFunc() { return std::make_pair(std::string("test1"),std::string("test1")); } int main(int argc, char** argv) { auto x = testeFunc().first.empty(); return 0; } The method "empty()" is now highlighted in red with the message: "Unable to resolve identifier empty." I am compiling this as c++14 so everything compiles fine, it's netbeans that can't understand the auto. Is there anyway to make netbeans understand this?
Hi! Can you, please, check it in the latest development version? Cannot reproduce the issue. BTW, I use g++ 6.2.0. Thanks, Petr
So, please, provide more info about your environment