This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: using member templates to cast 0 to pointer to member fun...
- To: adriang at campbellsoft dot com
- Subject: Re: using member templates to cast 0 to pointer to member fun...
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 20 Dec 1998 03:49:52 -0200
- Cc: egcs at egcs dot cygnus dot com
- References: <0004AE64.1452@campbellsoft.com>
On Dec 18, 1998, adriang@campbellsoft.com wrote:
> everything works fine, until assigning NULL to the member function pointer.
> the error is:
> cannot convert `NULL' from type `Null' to type `int (a::*)(int)'
It looks like a bug in egcs to me. I'm installing a testcase based on
your post in the testsuite.
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva aoliva@{acm.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
Universidade Estadual de Campinas, SP, Brasil