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 144535

Summary: wrong error highlighting for inner structure
Product: cnd Reporter: Alexander Simon <alexvsimon>
Component: Code ModelAssignee: nnnnnk <nnnnnk>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Alexander Simon 2008-08-20 08:41:15 UTC
wrong error highlighting for inner structure
Code example:
-----------------------------
typedef struct pcihp {
    struct pcihp *nextp;
    struct pcihp_slotinfo {
        char *name;
    } slotinfo[10];
    int bus_flags;
} pcihp_t;

void foo(struct pcihp_slotinfo * x) {
    x->name[0];
}
-----------------------------
wrong error highlighting for using of inner structure pcihp_slotinfo in the function foo()
Comment 1 Alexander Simon 2008-08-20 08:45:27 UTC
This is a top bug in the OpenSolaris.
Comment 2 Vladimir Voskresensky 2008-08-22 17:16:10 UTC
interesting is that "pcihp_slotinfo" has global visibility in case of C compiler (gcc or cc) C++ compilers (g++, CC)
report errors for such usage of type
Comment 3 Alexey Vladykin 2008-09-24 16:11:34 UTC
Looking for nested structures will have significant impact on performance of code completion, hyperlinks and unresolved
identifier highlighting. Fixing this bug includes deep changes of the whole completion engine. We do not have resources
to do it in 6.5.
Comment 4 Vladimir Voskresensky 2009-04-16 13:45:06 UTC
not in this release.
but seems we can do it without significant impact on performance. We just need better classifiers registration
mechanism. We can register C classifiers with scope and without scope qualified names on project level
Comment 6 Quality Engineering 2010-12-07 06:11:05 UTC
Integrated into 'main-golden', will be available in build *201012070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/666f1fdbc6b1
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixing #192897 -  unstable LiteSQL accuracy test (fixed regression part caused by #144535)