Hi
This patch fixes an infinite loop: generating a vtable may trigger
template instantiation of function template which is virtual. This
in turn can cause another vtable to be generated. And this could
continue forever. With the patch, the option -ftemplate-depth
to limit the number of such attempts.
Since the function 'instantiate_pending_templates', modified by this
patch, is only used by 'finish_file' and its return type is never used.
I simplify this as well.
Tested on i686-pc-linux-gnu with no regressions. OK for mainline?