I added class jit_diagnostic_listener in r15-4760-g0b73e9382ab51c
but forgot to annotate one of the vfuncs with "override".

Fixed thusly.

Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu.
Pushed to trunk as r15-7515-g6ac313525a1fae.

gcc/jit/ChangeLog:
        PR other/116613
        * dummy-frontend.cc
        (jit_diagnostic_listener::on_report_diagnostic): Add
        "final override".

Signed-off-by: David Malcolm <dmalc...@redhat.com>
---
 gcc/jit/dummy-frontend.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/jit/dummy-frontend.cc b/gcc/jit/dummy-frontend.cc
index 1d0080d6fec..88784ec9e92 100644
--- a/gcc/jit/dummy-frontend.cc
+++ b/gcc/jit/dummy-frontend.cc
@@ -1017,7 +1017,7 @@ public:
   }
 
   void on_report_diagnostic (const diagnostic_info &info,
-                            diagnostic_t orig_diag_kind)
+                            diagnostic_t orig_diag_kind) final override
   {
     JIT_LOG_SCOPE (gcc::jit::active_playback_ctxt->get_logger ());
 
-- 
2.26.3

Reply via email to