[Bug c++/37765] Printf of typed null pointer causes a run-time error

hosoda-t at palette dot plala dot or dot jp gcc-bugzilla@gcc.gnu.org
Thu Oct 9 02:42:00 GMT 2008



------- 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 folloing code also work on a undefined
behavior or not.

cout << (char*)0;




-- 


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



More information about the Gcc-bugs mailing list