[Bug c++/19542] attribute(sentinel) has problems with C++ __null

giovannibajo at libero dot it gcc-bugzilla@gcc.gnu.org
Thu Jan 20 13:11:00 GMT 2005


------- Additional Comments From giovannibajo at libero dot it  2005-01-20 13:11 -------
__null is 0 of integer type, while attribute sentinel checks for 0 of pointer 
type. Remember this is not the same because it depends on the ABI: on some 
platforms, pushing a 0 of integer type into the stack for a call is different 
from pushing a 0 of pointer type. In fact, using __null for (eg) concat() is 
actually a real bug.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19542



More information about the Gcc-bugs mailing list