------- Additional Comments From zilla at kayari dot org  2010-07-07 14:57 
-------
I'll just repeat my claim that outputting anything like "did you forget to make
it pure?" is probably worse than the status quo.

Forgetting to define a virtual function (or not linking to the object that
defines it) is far more common in my experience, and searching the web for this
error confirms that.  I didn't find any instances of this error on the web where
someone meant to declare a function as pure virtual but omitted the 
pue-specifier.

The most common reason for this error is declaring a virtual function and not
defining it, which is also the problem in this bug report (the fact that the
non-pure declaration was accidental is largely irrelevant; it was declared and
not defined.)

If any suggestion is made to the user, it should be to ensure that all non-pure
virtual functions are defined.  Which is what the GCC FAQ already says:
http://gcc.gnu.org/faq.html#vtables

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=11793

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to