From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24029 invoked by alias); 29 Apr 2003 17:26:01 -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 24002 invoked by uid 71); 29 Apr 2003 17:26:01 -0000 Date: Tue, 29 Apr 2003 17:26:00 -0000 Message-ID: <20030429172601.24001.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Gianni Mariani Subject: Re: c++/10541: Is NULL a valid pointer-type template argument? Reply-To: Gianni Mariani X-SW-Source: 2003-04/txt/msg01360.txt.bz2 List-Id: The following reply was made to PR c++/10541; it has been noted by GNATS. From: Gianni Mariani To: bangerth@dealii.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, gcc-gnats@gcc.gnu.org Cc: Subject: Re: c++/10541: Is NULL a valid pointer-type template argument? Date: Tue, 29 Apr 2003 10:18:25 -0700 bangerth@dealii.org wrote: > Your first case is invalid, since 0 is of type int, > 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 *. Other compilers seem to take this value.