This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/10541: Is NULL a valid pointer-type template argument?
- From: Gianni Mariani <gianni at mariani dot ws>
- To: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 29 Apr 2003 17:26:01 -0000
- Subject: Re: c++/10541: Is NULL a valid pointer-type template argument?
- Reply-to: Gianni Mariani <gianni at mariani dot ws>
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.