From 61934f800bb6d1a987e214bd7424f4dc1c58d4c3 Mon Sep 17 00:00:00 2001 From: Shafik Yaghmour Date: Mon, 6 Nov 2023 18:22:07 -0800 Subject: [PATCH] Revert "[Clang] Remove unneeded template keyword (#71435)" This reverts commit 9c346780dc1deed1c5362fcfca874e281c53e6e0. --- clang/include/clang/AST/Redeclarable.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/clang/include/clang/AST/Redeclarable.h b/clang/include/clang/AST/Redeclarable.h index be022bf5322ad..091bb886f2d49 100644 --- a/clang/include/clang/AST/Redeclarable.h +++ b/clang/include/clang/AST/Redeclarable.h @@ -114,7 +114,9 @@ class Redeclarable { bool isFirst() const { return Link.is() || - Link.get().is(); + // FIXME: 'template' is required on the next line due to an + // apparent clang bug. + Link.get().template is(); } decl_type *getPrevious(const decl_type *D) const {