[Bug ld/11793] Add suggestion to error "undefined reference to `vtable for XXX'"

2010-07-07 Thread manu at gcc dot gnu dot org
-- What|Removed |Added CC||manu at gcc dot gnu dot org http://sourceware.org/bugzilla/show_bug.cgi?id=11793 --- You are receiving th

[Bug ld/11793] Add suggestion to error "undefined reference to `vtable for XXX'"

2010-07-07 Thread zilla at kayari dot org
--- 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 i

[Bug ld/11793] Add suggestion to error "undefined reference to `vtable for XXX'"

2010-07-07 Thread phresnel at gmail dot com
--- Additional Comments From phresnel at gmail dot com 2010-07-07 15:24 --- (In reply to comment #1) > 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.htm

[Bug ld/11793] Add suggestion to error "undefined reference to `vtable for XXX'"

2010-07-07 Thread manu at gcc dot gnu dot org
--- Additional Comments From manu at gcc dot gnu dot org 2010-07-07 15:50 --- I understand your frustration, but linker and compiler do not share a lot of information and I think there is no way (right now) to give a good diagnostic for this case. The linker does not know about vtables,

[Bug ld/11793] Add suggestion to error "undefined reference to `vtable for XXX'"

2010-07-07 Thread phresnel at gmail dot com
--- Additional Comments From drow at false dot org 2010-07-07 16:04 --- Subject: Re: Add suggestion to error "undefined reference to `vtable for XXX'" On Wed, Jul 07, 2010 at 03:50:32PM -, manu at gcc dot gnu dot org wrote: > I understand your frustration, but linker and compiler d