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 195501

Summary: unresolved identifier when same named struct and variable
Product: cnd Reporter: Vladimir Voskresensky <vv159170>
Component: Code ModelAssignee: issues@cnd <issues>
Status: NEW ---    
Severity: normal    
Priority: P4    
Version: 7.0   
Hardware: PC   
OS: Solaris   
Issue Type: DEFECT Exception Reporter:

Description Vladimir Voskresensky 2011-02-15 12:32:50 UTC
struct stubs {
    int field;
};

struct spell_table {
    int fff;
};

struct spell_table stubs;

int main(int argc, char**argv) {
    // Prints welcome message...
    std::cout << "Welcome ..." << std::endl;

    struct stubs sss;
    sss.field = 0;
    stubs.fff = sss.field; //!!! fff is UNRESOLVED
    
    return 0;
}