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

Summary: unresolved enumerator from unnamed enum.
Product: cnd Reporter: Alexander Simon <alexvsimon>
Component: Code ModelAssignee: petrk
Status: VERIFIED FIXED    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Solaris   
Issue Type: DEFECT Exception Reporter:

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