From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24219 invoked by alias); 29 Apr 2003 17:26:04 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 24101 invoked by uid 71); 29 Apr 2003 17:26:03 -0000 Date: Tue, 29 Apr 2003 17:26:00 -0000 Message-ID: <20030429172603.24100.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Wolfgang Bangerth Subject: Re: c++/10541: Is NULL a valid pointer-type template argument? Reply-To: Wolfgang Bangerth X-SW-Source: 2003-04/txt/msg01362.txt.bz2 List-Id: The following reply was made to PR c++/10541; it has been noted by GNATS. From: Wolfgang Bangerth To: Gianni Mariani Cc: gcc-bugs@gcc.gnu.org, Subject: Re: c++/10541: Is NULL a valid pointer-type template argument? Date: Tue, 29 Apr 2003 12:22:51 -0500 (CDT) > I remember reading a while back that C/C++ considers the value 0 to be a > valid value for any pointer type. Hence 0 CAN BE of type char *. Well, 0 is of type "signed int". It can be converted to any pointer type implicitly. The question is whether the compiler is supposed to do implicit conversions for template args. I don't think so. > Other compilers seem to take this value. icc doesn't, for example. W. ------------------------------------------------------------------------- Wolfgang Bangerth email: bangerth@ices.utexas.edu www: http://www.ices.utexas.edu/~bangerth/