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

leor at bdsoft dot com gcc-bugzilla@gcc.gnu.org
Fri May 28 04:00:00 GMT 2004


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



More information about the Gcc-bugs mailing list