This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/19542] attribute(sentinel) has problems with C++ __null
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Jan 2005 15:00:54 -0000
- Subject: [Bug c++/19542] attribute(sentinel) has problems with C++ __null
- References: <20050120095136.19542.marcus@jet.franken.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-20 15:00 -------
C++ is differrent from C.
NULL in C++ is defined special in that it is defined as an int but C is different. You should always use a
cast when you passing to a varargs otherwise you might get a problem on 64bit targets and otherwise.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19542