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: "gianni at mariani dot ws" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 May 2004 19:40:26 -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 gianni at mariani dot ws 2004-05-27 19:40 -------
> Why do you think it will not work ...
I think it's not a question of wether it works or not, it's more an issue of
wether it is legal according to the standard. In the c.l.c++ thread I cited
earlier, there is an assertion that a call can only be made when the class is
complete.
I personally like the gcc behaviour and if anything I'd like to see this caught
in strict mode only. An alternative would be to write up a defect report on the
standard since it seems all the compilers are consistant ! I don't have my copy
of the standard handy to I can't say for sure.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15684