[flang-commits] [flang] [flang][CUDA] Preserve data attrs on assignment RHS (PR #207849)

via flang-commits flang-commits at lists.llvm.org
Mon Jul 6 14:49:34 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 4539 tests passed
* 135 tests skipped

All executed tests passed, but another part of the build **failed**. Click on a failure below to see the details.

<details>
<summary>flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/time-intrinsic.cpp.o</summary>

```
FAILED: flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/time-intrinsic.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DFLANG_RT_SUPPORTS_REAL16=0 -DLIBC_NAMESPACE=__llvm_libc_common_utils -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_SINGLE -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_NO_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/gha/actions-runner/_work/llvm-project/llvm-project/flang-rt/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/flang-rt/../flang/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/flang-rt -isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/cmake/Modules/../../libc -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Xclang -fno-pch-timestamp -O3 -DNDEBUG -std=gnu++17 -UNDEBUG -fno-lto -fno-exceptions -fno-rtti -funwind-tables -fno-asynchronous-unwind-tables -include/home/gha/actions-runner/_work/llvm-project/llvm-project/flang-rt/lib/runtime/stl-overrides.h -Wp,-U_GLIBCXX_ASSERTIONS -Wp,-U_LIBCPP_ENABLE_ASSERTIONS -MD -MT flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/time-intrinsic.cpp.o -MF flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/time-intrinsic.cpp.o.d -o flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/time-intrinsic.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/flang-rt/lib/runtime/time-intrinsic.cpp
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang-rt/lib/runtime/time-intrinsic.cpp:57:42: error: unused function template 'GetCpuTime' [-Werror,-Wunused-template]
57 | template <typename Unused = void> double GetCpuTime(fallback_implementation) {
|                                          ^~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang-rt/lib/runtime/time-intrinsic.cpp:195:16: error: unused function template 'GetSystemClockCount' [-Werror,-Wunused-template]
195 | static count_t GetSystemClockCount(int kind, fallback_implementation) {
|                ^~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang-rt/lib/runtime/time-intrinsic.cpp:211:16: error: unused function template 'GetSystemClockCountRate' [-Werror,-Wunused-template]
211 | static count_t GetSystemClockCountRate(int kind, fallback_implementation) {
|                ^~~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang-rt/lib/runtime/time-intrinsic.cpp:216:16: error: unused function template 'GetSystemClockCountMax' [-Werror,-Wunused-template]
216 | static count_t GetSystemClockCountMax(int kind, fallback_implementation) {
|                ^~~~~~~~~~~~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang-rt/lib/runtime/time-intrinsic.cpp:372:1: error: unused function template 'GetGmtOffset' [-Werror,-Wunused-template]
372 | GetGmtOffset(const TM &tm, fallback_implementation) {
| ^~~~~~~~~~~~
5 errors generated.
```
</details>
<details>
<summary>flang-rt/unittests/Runtime/CMakeFiles/RuntimeTests.dir/Assign.cpp.o</summary>

```
FAILED: flang-rt/unittests/Runtime/CMakeFiles/RuntimeTests.dir/Assign.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DFLANG_RT_SUPPORTS_REAL16=0 -DGTEST_NO_LLVM_SUPPORT=1 -DLLVM_BUILD_STATIC -DNOT_EXE=\"/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/not\" -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_NO_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googlemock/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/flang-rt/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/flang-rt/../flang/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Xclang -fno-pch-timestamp -O3 -DNDEBUG -std=gnu++17 -UNDEBUG -Wno-suggest-override -fno-exceptions -funwind-tables -fno-rtti -Wp,-U_GLIBCXX_ASSERTIONS -Wp,-U_LIBCPP_ENABLE_ASSERTIONS -MD -MT flang-rt/unittests/Runtime/CMakeFiles/RuntimeTests.dir/Assign.cpp.o -MF flang-rt/unittests/Runtime/CMakeFiles/RuntimeTests.dir/Assign.cpp.o.d -o flang-rt/unittests/Runtime/CMakeFiles/RuntimeTests.dir/Assign.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/flang-rt/unittests/Runtime/Assign.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/flang-rt/unittests/Runtime/Assign.cpp:10:
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang-rt/unittests/Runtime/tools.h:29:13: error: unused function template 'StoreElement' [-Werror,-Wunused-template]
29 | static void StoreElement(
|             ^~~~~~~~~~~~
1 error generated.
```
</details>
<details>
<summary>flang-rt/unittests/Runtime/CMakeFiles/RuntimeTests.dir/Inquiry.cpp.o</summary>

```
FAILED: flang-rt/unittests/Runtime/CMakeFiles/RuntimeTests.dir/Inquiry.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DFLANG_RT_SUPPORTS_REAL16=0 -DGTEST_NO_LLVM_SUPPORT=1 -DLLVM_BUILD_STATIC -DNOT_EXE=\"/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/not\" -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_NO_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googlemock/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/flang-rt/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/flang-rt/../flang/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Xclang -fno-pch-timestamp -O3 -DNDEBUG -std=gnu++17 -UNDEBUG -Wno-suggest-override -fno-exceptions -funwind-tables -fno-rtti -Wp,-U_GLIBCXX_ASSERTIONS -Wp,-U_LIBCPP_ENABLE_ASSERTIONS -MD -MT flang-rt/unittests/Runtime/CMakeFiles/RuntimeTests.dir/Inquiry.cpp.o -MF flang-rt/unittests/Runtime/CMakeFiles/RuntimeTests.dir/Inquiry.cpp.o.d -o flang-rt/unittests/Runtime/CMakeFiles/RuntimeTests.dir/Inquiry.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/flang-rt/unittests/Runtime/Inquiry.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/flang-rt/unittests/Runtime/Inquiry.cpp:10:
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang-rt/unittests/Runtime/tools.h:29:13: error: unused function template 'StoreElement' [-Werror,-Wunused-template]
29 | static void StoreElement(
|             ^~~~~~~~~~~~
1 error generated.
```
</details>
<details>
<summary>flang-rt/unittests/Runtime/CMakeFiles/RuntimeTests.dir/Descriptor.cpp.o</summary>

```
FAILED: flang-rt/unittests/Runtime/CMakeFiles/RuntimeTests.dir/Descriptor.cpp.o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -DFLANG_RT_SUPPORTS_REAL16=0 -DGTEST_NO_LLVM_SUPPORT=1 -DLLVM_BUILD_STATIC -DNOT_EXE=\"/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/not\" -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_NO_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googlemock/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/flang-rt/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/flang-rt/../flang/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Xclang -fno-pch-timestamp -O3 -DNDEBUG -std=gnu++17 -UNDEBUG -Wno-suggest-override -fno-exceptions -funwind-tables -fno-rtti -Wp,-U_GLIBCXX_ASSERTIONS -Wp,-U_LIBCPP_ENABLE_ASSERTIONS -MD -MT flang-rt/unittests/Runtime/CMakeFiles/RuntimeTests.dir/Descriptor.cpp.o -MF flang-rt/unittests/Runtime/CMakeFiles/RuntimeTests.dir/Descriptor.cpp.o.d -o flang-rt/unittests/Runtime/CMakeFiles/RuntimeTests.dir/Descriptor.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/flang-rt/unittests/Runtime/Descriptor.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/flang-rt/unittests/Runtime/Descriptor.cpp:10:
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang-rt/unittests/Runtime/tools.h:24:13: error: unused function template 'StoreElement' [-Werror,-Wunused-template]
24 | static void StoreElement(void *p, const A &x, std::size_t bytes) {
|             ^~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang-rt/unittests/Runtime/tools.h:29:13: error: unused function template 'StoreElement' [-Werror,-Wunused-template]
29 | static void StoreElement(
|             ^~~~~~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/flang-rt/unittests/Runtime/tools.h:36:30: error: unused function template 'MakeArray' [-Werror,-Wunused-template]
36 | static OwningPtr<Descriptor> MakeArray(const std::vector<int> &shape,
|                              ^~~~~~~~~
3 errors generated.
```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

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


More information about the flang-commits mailing list