But why does it only occur on Fedora 33?
Likely its due to a new optimization in gcc 10 which few other distros are using yet.
Since the GtkFoo::get_type() calls in wrap_init() are not using the return value, it makes sense to me that they are eligible for dead code elimination, as is suggested in the blog post. Since Gtkmm is calling these methods explicitly to ensure the GTypes are made known, I think fixing it in Gtkmm by adding g_type_ensure() is the path of least resistance.
@Andrew, I do not know how I am supposed to use g_type_ensure(TVDerived::get_type()). I am not familiar with Gtk+ or GObject, I have only used Gtkmm, so far.
You can simply replace TVDerived dummy; with g_type_ensure(TVDerived::get_type()); in your example program.