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 218705 - UIDs don't work for objects defined in macros
Summary: UIDs don't work for objects defined in macros
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-20 14:33 UTC by nnnnnk
Modified: 2012-10-05 18:18 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 nnnnnk 2012-09-20 14:33:59 UTC
There are links to code model objects in repository - UIDs.

If two objects of one kind with the same name (or unnamed) are defined under macro usage they would have one UID.
So one of them would be substituted by another at some moment.
This causes hardly reproducible and unstable code model errors.

Sample:
#define M struct A{struct A{int i;};};
M
void foo() {
    A::A a; 
    a.i++;
}