This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16489] New: G++ incorrectly rejects use of a null constant integral expression as a null constant pointer
- From: "gdr at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Jul 2004 07:23:07 -0000
- Subject: [Bug c++/16489] New: G++ incorrectly rejects use of a null constant integral expression as a null constant pointer
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Consider
const int NULL = 0;
int main() { double* p = NULL; }
G++ incorrectly rejects the above. This regression is also present
in GCC-3.3.x, in direct violation of the C++ standard.
--
Summary: G++ incorrectly rejects use of a null constant integral
expression as a null constant pointer
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: gdr at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: Plateform independent
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16489