This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]