https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105542
--- Comment #6 from Brad Richardson <everythingfunctional at protonmail dot com> --- That error doesn't look related to finalization. It looks like it's just not picking up the interface for the function that is defined later. Just a guess, but if you comment that line out, does it report the same error for the line before it?
