]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
d: Remove "final" and "override" from visitor method.
authorIain Buclaw <ibuclaw@gdcproject.org>
Sun, 11 Dec 2022 18:08:01 +0000 (19:08 +0100)
committerIain Buclaw <ibuclaw@gdcproject.org>
Sun, 11 Dec 2022 18:12:29 +0000 (19:12 +0100)
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.

gcc/d/imports.cc

index 4ce6f026b299cf4dac7f95d6e6c2da96be35076a..dfda2401ee84f82530fbe50c64ab26d7db1837c3 100644 (file)
@@ -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;