[clang] Revert "[Clang] Remove unneeded template keyword" (PR #71478)

via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 6 18:23:11 PST 2023


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Shafik Yaghmour (shafik)

<details>
<summary>Changes</summary>

Reverts llvm/llvm-project#<!-- -->71435

This is failing on some build bots e.g.: https://green.lab.llvm.org/green/view/LLDB/job/lldb-cmake/62315/consoleFull#-3939952849ba4694-19c4-4d7e-bec5-911270d8a58c

---
Full diff: https://github.com/llvm/llvm-project/pull/71478.diff


1 Files Affected:

- (modified) clang/include/clang/AST/Redeclarable.h (+3-1) 


``````````diff
diff --git a/clang/include/clang/AST/Redeclarable.h b/clang/include/clang/AST/Redeclarable.h
index be022bf5322ad61..091bb886f2d4962 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<KnownLatest>() ||
-             Link.get<NotKnownLatest>().is<UninitializedLatest>();
+             // FIXME: 'template' is required on the next line due to an
+             // apparent clang bug.
+             Link.get<NotKnownLatest>().template is<UninitializedLatest>();
     }
 
     decl_type *getPrevious(const decl_type *D) const {

``````````

</details>


https://github.com/llvm/llvm-project/pull/71478


More information about the cfe-commits mailing list