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 135422 - C/C++ Syntax Error Highlighting: does not mark some errors
Summary: C/C++ Syntax Error Highlighting: does not mark some errors
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P4 blocker (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-20 13:41 UTC by crimcat
Modified: 2010-05-21 07:28 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 crimcat 2008-05-20 13:41:25 UTC
Let's have the following example:
-------------------------
static bool flag = false;

void
function_01(void)
{
    if(flag) {
        // some code
    } else {
        // some other code
    }
}

int
main(int argc, char** argv)
{
    return 0;
}
----------------------------
The add the following function _before_ "static bool flag" declaration:
void
function_02(void)
{
    if(flag) {
        // code
    }
}
The editor does not mark "flag" global variable usage as error, but it's actually declared _after_ the function_02() body.