--- Comment #5 from paolo dot carlini at oracle dot com 2008-10-09 08:19
---
Yes, all those inserters, per 27.6.2.5.4/3 Require a non-null s.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37765
--- Comment #1 from schwab at suse dot de 2008-10-08 07:36 ---
%s requires a pointer to a string, which (char*)0 isn't.
--
schwab at suse dot de changed:
What|Removed |Added
--- Comment #2 from hosoda-t at palette dot plala dot or dot jp 2008-10-08
23:02 ---
(In reply to comment #1)
%s requires a pointer to a string, which (char*)0 isn't.
%s is a c-style string.
try the code below, and please notice that the code works well on g++ 3.4.4 and
also on
--- Comment #3 from pinskia at gcc dot gnu dot org 2008-10-08 23:05 ---
printf (%s\n, NULL);
is undefined. So GCC is optimizing the printf in this case to puts which
creates smaller and faster code.
--
pinskia at gcc dot gnu dot org changed:
What|Removed
--- Comment #4 from hosoda-t at palette dot plala dot or dot jp 2008-10-09
02:40 ---
Thank you for your time. I am sure that you are right, because the Null pointer
does not point to a string which must have the terminator '\0' at the end.
However, please kindly adivise me if the