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.
NetBeans 8.1, Ubuntu 15.10, G++ 5.2.1, --std=c++11 #include <iostream> #include <string> #include <algorithm> using namespace std; struct S { int v; S(int v) : v(v) { } int getV() { return v; } }; template <typename T> void print(const T& values) { for (const auto& value : values) { cout << value->getV() << endl; // unresolved identifier 'getV' } } int main() { vector<S*> v; v.push_back(new S(1)); v.push_back(new S(2)); v.push_back(new S(3)); print(v); }
299273:1e2eaadd040a
Integrated into 'main-silver', will be available in build *201607200002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/1e2eaadd040a User: Petr Kudryavtsev <petrk@netbeans.org> Log: Fixed #257030 - Unresolved identifiers in template if variable has 'auto' type