[Bug c++/18886] attribute sentinel doesn't work with C++

salinger at sun dot felk dot cvut dot cz gcc-bugzilla@gcc.gnu.org
Wed Dec 8 13:22:00 GMT 2004


------- Additional Comments From salinger at sun dot felk dot cvut dot cz  2004-12-08 13:22 -------
> > NULL is expanded as __null in C++.
> > This is inconsistent with sentinel testing.

> Why do you think it is inconsistent?

For me it is inconsistent at least conceptualy.

In C++ (but not C) execl ("/bin/ls", "-aFC", NULL)
produces "warning: missing sentinel in function call"
This warning is confusing, there is a sentinel, 
may be with missing pointer conversion.



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|attribute sentinel doesn't  |attribute sentinel doesn't
                   |work with C++               |work with C++


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



More information about the Gcc-bugs mailing list