[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop-bugs
Subject: [Bug 252883] New: Semantic analysis always reports NULL as not
From: Nathan <digitalpioneer () gmail ! com>
Date: 2010-09-30 15:15:48
Message-ID: bug-252883-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic