------- Comment #3 from pinskia at gcc dot gnu dot org  2009-05-11 04:38 -------
(In reply to comment #2)
> (In reply to comment #1)
> > Actually this code is undefined.  Using %s with a NULL pointer is undefined 
> > so
> > GCC's behavior is correct.
> > 
> 
> You are wrong, the GCC behavior is incorrect.
> Please compile code and run before replying.
> 

It does not matter if the GCC/glibc behavior is different between those lines,
the code is undefined.  On some targets all 4-7 lines will crash.

-- Pinski


-- 

pinskia at gcc dot gnu dot org changed:

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


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

Reply via email to