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 249977

Summary: Unable to resolve enumerator in C code
Product: cnd Reporter: petrk
Component: Code ModelAssignee: petrk
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.0.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description petrk 2015-01-23 12:15:16 UTC
// newfile.h
typedef struct { 
    enum {
        ABC,
        DEF,
    } var;
} SomeStruct;

static inline void foo() {
    int x = ABC; // ABC is resolved
}

// newfile.c
#include "newfile.h"

int boo() {
    int y = DEF; // DEF isn't resolved
}