This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/20469] New: gcjh does not rename Java variables named NULL
- From: "strk at keybit dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Mar 2005 16:56:10 -0000
- Subject: [Bug java/20469] New: gcjh does not rename Java variables named NULL
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
headers generated by gcjh contains class members (didn't check about other
kind of objects) named 'NULL'. This is the name used in Java sourcecode, but
cannot be safely used in C++ headers as NULL is always (or often?) defined.
g++ error raised when including the produced headers is:
error: expected unqualified-id before numeric constant
--
Summary: gcjh does not rename Java variables named NULL
Product: gcc
Version: 3.4.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: strk at keybit dot net
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20469