From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26409 invoked by alias); 9 Oct 2008 02:42:05 -0000 Received: (qmail 23758 invoked by uid 48); 9 Oct 2008 02:40:44 -0000 Date: Thu, 09 Oct 2008 02:42:00 -0000 Message-ID: <20081009024044.23757.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/37765] Printf of typed null pointer causes a run-time error In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "hosoda-t at palette dot plala dot or dot jp" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-10/txt/msg00612.txt.bz2 ------- 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