Hi, This patch removes "final" and "override" from the OverloadSet visitor method. This was added by the backport of an ICE in r12-8969. While harmless, it was not until r13-758 that "final" and "override" were introduced to all visitor methods in the D front-end. Removing it from the release branch just for consistency with the rest of the file.
Committed to releases/gcc-12. Regards, Iain. --- gcc/d/ChangeLog: * imports.cc (ImportVisitor::visit (OverloadSet *)): Remove "final" and "override" from visitor method. --- gcc/d/imports.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/d/imports.cc b/gcc/d/imports.cc index 4ce6f026b29..dfda2401ee8 100644 --- a/gcc/d/imports.cc +++ b/gcc/d/imports.cc @@ -161,7 +161,7 @@ public: } /* Build IMPORTED_DECLs for all overloads in a set. */ - void visit (OverloadSet *d) final override + void visit (OverloadSet *d) { vec<tree, va_gc> *tset = NULL; -- 2.37.2