[Bug c++/19894] pointer-to-void member not rejected in template
donaldc at csgsolar dot com dot au
gcc-bugzilla@gcc.gnu.org
Mon May 16 03:06:00 GMT 2005
------- Additional Comments From donaldc at csgsolar dot com dot au 2005-05-16 03:06 -------
> 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."
It can be equal to null, though. The following should all compile:
a=0;
if (a==0) { } // always true
if (a!=0) {} // always false
I don't think there's a bug.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19894
More information about the Gcc-bugs
mailing list