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 - Unable to resolve enumerator in C code
Summary: Unable to resolve enumerator in C code
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.0.2
Hardware: All All
: P3 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-23 12:15 UTC by petrk
Modified: 2016-10-31 10:59 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 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
}