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 <locale> #include <string> #include <iostream> using namespace std; int main() { locale l(""); cout << l.name().substr(0, 2) << endl; // unresolved identifier 'substr' }
Seems that it works in development version
Integrated into 'main-silver', will be available in build *201601180002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/424c984920a0 User: Petr Kudryavtsev <petrk@netbeans.org> Log: Fixed #257028 - std::locale and unresolved identifier (transplanted from 72ee8f0b1f61488086f62f5cf20d1f0e8390350b)
Fixes of this bug: http://hg.netbeans.org/releases/rev/72ee8f0b1f61
Verified in NetBeans IDE 8.1 (Build 201601300101)