This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++/10541: Is NULL a valid pointer-type template argument?


The following reply was made to PR c++/10541; it has been noted by GNATS.

From: Gianni Mariani <gianni at mariani dot ws>
To: bangerth at dealii dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org,
   gcc-gnats at gcc dot gnu dot org
Cc:  
Subject: Re: c++/10541: Is NULL a valid pointer-type template argument?
Date: Tue, 29 Apr 2003 10:18:25 -0700

 bangerth at dealii dot 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.
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]