This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15684] Pointer to member function called on incomplete type should diag
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 May 2004 01:42:03 -0000
- Subject: [Bug c++/15684] Pointer to member function called on incomplete type should diag
- References: <20040527163621.15684.gianni@mariani.ws>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-28 01:42 -------
Confirmed, note that is well defined though as ->* is the pointer-to-member of T only T needs to be
completely-defined and not the left side.
class A
{};
class B;
class C
{
typedef void (A::*ftype)();
C(B* a){a->*ftype();}
}
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-05-28 01:42:02
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15684