https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118321
--- Comment #5 from Tobias Burnus <burnus at gcc dot gnu.org> --- > Fixed the main Fortran issue. And now also the 'this' pointer issue for C++. * * * Still to do: * Possibly add more test cases, e.g., static member function in C++ or ... * Check whether we want/have to handle ENTRY for Fortran - and whether we then hit that issue. * For C++, additional arguments are added for VTT parm, cf. cp/decl2.cc's maybe_retrofit_in_chrg need to check whether that's relevant for 'declare variant' or not.