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.

Bug 257028 - std::locale and unresolved identifier
Summary: std::locale and unresolved identifier
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-07 18:40 UTC by soldatov
Modified: 2016-02-01 09:01 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2015-12-07 18:40:27 UTC
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'
}
Comment 1 petrk 2015-12-11 12:13:01 UTC
Seems that it works in development version
Comment 2 Quality Engineering 2016-01-18 03:04:34 UTC
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)
Comment 3 ilia 2016-01-27 14:41:34 UTC
  Fixes of this bug:
    http://hg.netbeans.org/releases/rev/72ee8f0b1f61
Comment 4 ilia 2016-01-27 14:42:55 UTC
  Fixes of this bug:
    http://hg.netbeans.org/releases/rev/72ee8f0b1f61
Comment 5 soldatov 2016-02-01 09:01:31 UTC
Verified in NetBeans IDE 8.1 (Build 201601300101)