diff mbox series

[GCC-12,committed] d: Remove "final" and "override" from visitor method.

Message ID 20221211181354.2826180-1-ibuclaw@gdcproject.org
State New
Headers show
Series [GCC-12,committed] d: Remove "final" and "override" from visitor method. | expand

Commit Message

Iain Buclaw Dec. 11, 2022, 6:13 p.m. UTC
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 mbox series

Patch

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;