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 - unresolved identifier when same named struct and variable
Summary: unresolved identifier when same named struct and variable
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.0
Hardware: PC Solaris
: P4 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-15 12:32 UTC by Vladimir Voskresensky
Modified: 2013-05-07 11:21 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 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;
}