[Bug c++/31042] Instantiation with const pointer to member

rguenth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Mar 5 13:27:00 GMT 2007



------- Comment #1 from rguenth at gcc dot gnu dot org  2007-03-05 13:27 -------
Your code is invalid.  Valid is

class X;

template <typename T_>
int X::* const * f1 () { return static_cast<T_*>(0); }

int X::* const * f2 () { return f1<int X::* const>(); }


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31042



More information about the Gcc-bugs mailing list