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 255898 - unresolved enumerator from unnamed enum.
Summary: unresolved enumerator from unnamed enum.
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: PC Solaris
: P3 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-13 12:19 UTC by Alexander Simon
Modified: 2016-03-16 08:12 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 Alexander Simon 2015-10-13 12:19:38 UTC
Test case is C application with two files.
1. heaher.h

typedef struct {
    enum {
        CID_NONE = -2,
        CID_INPUT = -1,
    } id;
} ContentID;

2. main.c

#include "header.h"

static inline ContentID cid_get(int id){
    return (ContentID) { id };
}

int main(int argc, char** argv) { 
    ContentID cid_found = cid_get(CID_NONE); // unresolved CID_NONE
    return 0;
}
Comment 1 petrk 2015-10-30 11:36:32 UTC
Fixed at enum. Changeset: 303793:0c101ed3985c
Comment 2 Quality Engineering 2015-11-03 02:27:37 UTC
Integrated into 'main-silver', will be available in build *201511030002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/235a100f7759
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixed #255898 - unresolved enumerator from unnamed enum.
(transplanted from 0c101ed3985caf5897d1842f0d60514c9c495769)
Comment 3 soldatov 2015-11-20 12:36:14 UTC
Verified in NetBeans 8.1patch1