This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/19894] pointer-to-void member not rejected in template
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Feb 2005 15:06:00 -0000
- Subject: [Bug c++/19894] pointer-to-void member not rejected in template
- References: <20050211020409.19894.reichelt@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From reichelt at gcc dot gnu dot org 2005-02-14 15:05 -------
> Quite naively, I would say that this could even be ok, just that there will
> never be a member variable the address of which one could initialize this
> pointer-to-member with. Do you have chapter and verse where this is
> prohibited?
>
> W.
The third paragraph of [8.3.3] aka [dcl.mptr] says:
A pointer to member shall not point to a static member of a class (9.4),
a member with reference type, or "cv void."
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19894