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: "leor at bdsoft dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 May 2004 17:12:01 -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 leor at bdsoft dot com 2004-05-27 17:12 -------
(In reply to comment #1)
> Not a bug.
> From the standard, 8.3.3:
> class Y;
> char Y::* pmc;
> ...
> Similarly, the declaration of pmc is well-formed even though Y is an
incomplete type.
OK, I'm no expert, but all it says is that the declaration is well-formed, not
that you can actually use it (the way they show pmi and pmf being used)
-leor
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15684