From 2fd71462cbd45c67b5ea0d648e0fe5f12bc920dd Mon Sep 17 00:00:00 2001 From: Henner Zeller Date: Wed, 6 Jul 2022 08:52:33 -0700 Subject: [PATCH] Don't make class SementicContext::Empty final. The class does not implement the pure virtual methods so can not be considered 'final'. Clang 10 and 11 complain about this. Context: https://github.com/chipsalliance/Surelog/issues/3081 Signed-off-by: Henner Zeller --- runtime/Cpp/runtime/src/atn/SemanticContext.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/Cpp/runtime/src/atn/SemanticContext.h b/runtime/Cpp/runtime/src/atn/SemanticContext.h index e9a884846b..8116fc0b56 100755 --- a/runtime/Cpp/runtime/src/atn/SemanticContext.h +++ b/runtime/Cpp/runtime/src/atn/SemanticContext.h @@ -92,7 +92,7 @@ namespace atn { return !operator==(lhs, rhs); } - class ANTLR4CPP_PUBLIC SemanticContext::Empty final : public SemanticContext{ + class ANTLR4CPP_PUBLIC SemanticContext::Empty : public SemanticContext{ public: /** * The default {@link SemanticContext}, which is semantically equivalent to