[Bug c++/15684] Pointer to member function called on incomplete type should diag

gianni at mariani dot ws gcc-bugzilla@gcc.gnu.org
Fri May 28 11:31:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list