From: Iain Buclaw Date: Sun, 11 Dec 2022 18:08:01 +0000 (+0100) Subject: d: Remove "final" and "override" from visitor method. X-Git-Tag: release-12.2.mpacbti-rel1~224 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db8e3439ae4089ac27e542ff8f9e64a7aa093d67;p=thirdparty%2Fgcc.git d: Remove "final" and "override" from 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. gcc/d/ChangeLog: * imports.cc (ImportVisitor::visit (OverloadSet *)): Remove "final" and "override" from visitor method. --- diff --git a/gcc/d/imports.cc b/gcc/d/imports.cc index 4ce6f026b299..dfda2401ee84 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 *tset = NULL;