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 257032 - std::tm and unresolved identifiers
Summary: std::tm and unresolved identifiers
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 19:58 UTC by soldatov
Modified: 2015-12-21 13:29 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 19:58:50 UTC
NetBeans 8.1, Ubuntu 15.10, G++ 5.2.1, --std=c++11

#include <ctime>

int main() {
    struct std::tm t;
    t.tm_sec = 0; // unresolved identifier 'tm_sec'
    t.tm_min = 0; // unresolved identifier 'tm_min'
    t.tm_hour = 0; // unresolved identifier 'tm_hour'
    t.tm_mday = 1; // unresolved identifier 'tm_mday'
    t.tm_mon = 0; // unresolved identifier 'tm_mon'
    t.tm_year = 0; // unresolved identifier 'tm_year'
    t.tm_isdst = -1; // unresolved identifier 'tm_isdst'
    return 0;
}
Comment 1 petrk 2015-12-14 12:38:34 UTC
Fixed at enum. Changeset: 305065:c034df4abd14
Comment 2 Quality Engineering 2015-12-16 02:31:13 UTC
Integrated into 'main-silver', will be available in build *201512160002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/61d7d7f9f965
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixed #257032 - std::tm and unresolved identifiers
(transplanted from c034df4abd1429b2f11d0b2986d40538e05eab73)
Comment 3 soldatov 2015-12-21 13:29:54 UTC
Verified in NetBeans 8.1 with latest internal patches