From kdevelop-bugs Thu Sep 30 15:15:48 2010 From: Nathan Date: Thu, 30 Sep 2010 15:15:48 +0000 To: kdevelop-bugs Subject: [Bug 252883] New: Semantic analysis always reports NULL as not Message-Id: X-MARC-Message: https://marc.info/?l=kdevelop-bugs&m=128585987615455 https://bugs.kde.org/show_bug.cgi?id=252883 Summary: Semantic analysis always reports NULL as not defined, but it works just fine. Product: kdevelop Version: 4.1.60 Platform: Compiled Sources OS/Version: Linux Status: UNCONFIRMED Severity: minor Priority: NOR Component: Language Support: CPP AssignedTo: kdevelop-bugs@kdevelop.org ReportedBy: digitalpioneer@gmail.com Version: 4.1.60 (using KDE 4.5.1) OS: Linux I don't know where NULL is actually defined, but I've never had a compiler fail to recognize it. KDevelop, however, always reports NULL as not defined. If I add a line #define NULL 0 then it works, but this shouldn't be necessary. NULL is already known to the compiler. Reproducible: Always Steps to Reproduce: Create a C++ source file, reference NULL in the code. Observe that KDevelop underlines it and creates a problem "Declaration not found: NULL" Compile said file and, assuming you have no other errors, it builds fine. Actual Results: KDevelop's C++ language support does not recognize NULL Expected Results: NULL would be recognized OS: Linux (x86_64) release 2.6.35-ARCH Compiler: gcc 4.5.1 -- Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ KDevelop-bugs mailing list KDevelop-bugs@kdevelop.org https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs