ports/devel/llvm14/files
Dimitry Andric 51c043a810 devel/llvm14: fix build with clang 19
Clang 19 now implements CWG 96 [1], which requires a template argument
list after a 'template' keyword, resulting in errors similar to:

    /wrkdirs/usr/ports/devel/llvm14/work/llvm-project-14.0.6.src/flang/include/flang/Evaluate/integer.h:310:32: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
      310 |       auto back{FROM::template ConvertSigned(result.value)};
          |                                ^
    /wrkdirs/usr/ports/devel/llvm14/work/llvm-project-14.0.6.src/flang/lib/Evaluate/fold-real.cpp:72:22: warning: variable 'z' set but not used [-Wunused-but-set-variable]
       72 |     } else if (auto *z{UnwrapExpr<Expr<SomeComplex>>(args[0])}) {
          |                      ^
    /wrkdirs/usr/ports/devel/llvm14/work/llvm-project-14.0.6.src/flang/lib/Evaluate/fold-real.cpp:69:15: warning: variable 'x' set but not used [-Wunused-but-set-variable]
       69 |     if (auto *x{UnwrapExpr<Expr<SomeReal>>(args[0])}) {
          |               ^
    /wrkdirs/usr/ports/devel/llvm14/work/llvm-project-14.0.6.src/flang/lib/Evaluate/fold-real.cpp:148:60: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
      148 |                                                            SCALE(y)};
          |                                                            ^
    /wrkdirs/usr/ports/devel/llvm14/work/llvm-project-14.0.6.src/flang/runtime/reduction-templates.h:89:24: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
       89 |   accumulator.template GetResult(&result);
          |                        ^
    /wrkdirs/usr/ports/devel/llvm14/work/llvm-project-14.0.6.src/flang/runtime/reduction-templates.h:130:24: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
      130 |   accumulator.template GetResult(result, zeroBasedDim);
          |                        ^
    /wrkdirs/usr/ports/devel/llvm14/work/llvm-project-14.0.6.src/flang/runtime/reduction-templates.h:158:24: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
      158 |   accumulator.template GetResult(result, zeroBasedDim);
          |                        ^
    /wrkdirs/usr/ports/devel/llvm14/work/grpc-1.62.2/src/core/lib/promise/detail/basic_seq.h:103:38: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
      103 |                     Traits::template CallSeqFactory(f_, *cur_, std::move(arg)));
          |                                      ^

Upstream has committed a fix to their main branch [2], but it does not
apply cleanly to 14.0.6, so add a backported patch.

[1] https://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#96
[2] 7bc7672925

PR:		280776
Approved by:	brooks (maintainer)
MFH:		2024Q3
2024-08-16 17:34:42 +02:00
..
llvm-wrapper.sh.in devel/llvm14: bootstrap from llvm13 2022-02-10 18:13:01 +00:00
patch-backport-7bc7672925
patch-backport-3450272fc2
patch-backport-version-fixes devel/llvm14: fix build with lld 17 2023-09-21 16:23:33 +01:00
patch-clang_lib_Driver_ToolChains_Clang.cpp devel/llvm14: remove ELFv1 support 2024-01-03 15:09:46 +01:00
patch-clang_lib_Headers_CMakeLists.txt
patch-clang_tools_clang-format_clang-format-sublime.py
patch-clang_tools_clang-format_clang-format.py
patch-clang_tools_clang-format_git-clang-format
patch-clang_tools_extra_clang-doc_tool_CMakeLists.txt
patch-cmake_modules_AddSphinxTarget.cmake devel/llvm14: bootstrap from llvm13 2022-02-10 18:13:01 +00:00
patch-compiler-rt_lib_builtins_CMakeLists.txt
patch-compiler-rt_lib_profile_InstrProfilingPlatformLinux.c devel/llvm14: bootstrap from llvm13 2022-02-10 18:13:01 +00:00
patch-fopenmp.diff devel/llvm14: bootstrap from llvm13 2022-02-10 18:13:01 +00:00
patch-lib_Target_PowerPC_PPCTargetMachine.cpp
patch-lldb_CMakeLists.txt devel/llvm14: bootstrap from llvm13 2022-02-10 18:13:01 +00:00
patch-swig
xtoolchain.mk.in