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 255802

Summary: Unresolved identifiers appears if use modifies external header file
Product: cnd Reporter: soldatov <soldatov>
Component: Code ModelAssignee: issues@cnd <issues>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Solaris   
Issue Type: DEFECT Exception Reporter:

Description soldatov 2015-10-08 12:55:30 UTC
/tmp/qq/test.cpp:
-----------------------------------------------------------------
#include "test.hpp"

int main() {
  return CONSTANT;
}
-----------------------------------------------------------------

/tmp/qq/test.hpp:
-----------------------------------------------------------------
#define CONSTANT 1
int foo();
-----------------------------------------------------------------

Scenario:
- Open test.cpp file via "Open File" wizard
- Open test.hpp file via "Open File" wizard
- Add "void aaa() {}" into main.cpp and save file
==> ok
- Add "void bbb() {}" into main.hpp and save file
- Add "void ccc() {}" into main.hpp and save file
- Add "void ddd() {}" into main.hpp and save file
==> 'ddd' is unresolved identifier

Bug exists in NetBeans 8.0.2 too.
Comment 1 Alexander Simon 2015-11-02 13:18:38 UTC

*** This bug has been marked as a duplicate of bug 255933 ***