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.
======================== main.cpp ============================================= #include "file1.h" int main(int argc, char** argv) { AA i = 0; return 0; } ======================== file1.h ============================================== #ifndef FILE1_H #define FILE1_H #error ssssssssssssssssss #define AA int #endif /* FILE1_H */ =============================================================================== Scenario: - Create project with main.cpp and file1.h - Close IDE - Delete old userdir and start IDE again - Open project - Open main.cpp file ===> In Oracle Solaris Studio in main.cpp I see "AA is a unresolved identifier" In NetBeans I don't see any errors in main.cpp and "AA == int" In both cases I see "Some #include or #error directives failed." sign on project's node. For me Oracle Solaris Studio works better in this case.
Fixed in http://hg.netbeans.org/cnd-main/rev/fdc1e5ac3b97 and http://hg.netbeans.org/cnd-main/rev/32124a9c5da9
Integrated into 'main-silver', will be available in build *201609040002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/fdc1e5ac3b97 User: Petr Kudryavtsev <petrk@netbeans.org> Log: Fixing #258049 - [newcodemodel] New parser doesn't highlight inaccessible macro