[clang] [clang][bytecode] Use ExtendingDecl mechanism for primitives as well (PR #128141)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 21 01:20:08 PST 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `ppc64le-lld-multistage-test` running on `ppc64le-lld-multistage-test` while building `clang` at step 7 "test-build-stage1-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/168/builds/8947

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 7 (test-build-stage1-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: AST/ByteCode/libcxx/primitive-temporary.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage1/bin/clang -cc1 -internal-isystem /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage1/lib/clang/21/include -nostdsysteminc -std=c++2c -fexperimental-new-constant-interpreter -verify=expected,both /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage1/bin/clang -cc1 -internal-isystem /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage1/lib/clang/21/include -nostdsysteminc -std=c++2c -fexperimental-new-constant-interpreter -verify=expected,both /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp
error: 'both-warning' diagnostics seen but not expected: 
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 168: unqualified call to 'std::move'
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 168: unqualified call to 'std::move'
error: 'both-note' diagnostics seen but not expected: 
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 182: while substituting deduced template arguments into function template 'operator()' [with _Ip = T *]
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 182: in instantiation of requirement here
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 181: while substituting template arguments into constraint expression here
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 188: while checking the satisfaction of concept '__indirectly_readable_impl<T *>' requested here
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 188: while substituting template arguments into constraint expression here
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 221: (skipping 1 context in backtrace; use -ftemplate-backtrace-limit=0 to see all)
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 221: while substituting template arguments into constraint expression here
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 238: while checking constraint satisfaction for template 'projected<T *, Proj>' required here
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 238: while substituting template arguments into constraint expression here
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 268: while checking constraint satisfaction for template 'operator()<T *, T *, Proj, UnaryVoid>' required here
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 268: in instantiation of function template specialization 'std::ranges::__for_each::operator()<T *, T *, Proj, UnaryVoid>' requested here
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 182: while substituting deduced template arguments into function template 'operator()' [with _Ip = std::__projected_impl<T *, Proj>::__type]
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 182: in instantiation of requirement here
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 181: while substituting template arguments into constraint expression here
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 188: while checking the satisfaction of concept '__indirectly_readable_impl<std::__projected_impl<T *, Proj>::__type>' requested here
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 188: while substituting template arguments into constraint expression here
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 192: (skipping 3 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 201: while substituting template arguments into constraint expression here
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 238: while checking the satisfaction of concept 'indirectly_unary_invocable<UnaryVoid, std::__projected_impl<T *, Proj>::__type>' requested here
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 238: while substituting template arguments into constraint expression here
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 268: while checking constraint satisfaction for template 'operator()<T *, T *, Proj, UnaryVoid>' required here
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 268: in instantiation of function template specialization 'std::ranges::__for_each::operator()<T *, T *, Proj, UnaryVoid>' requested here
24 errors generated.

--

********************

Step 13 (test-build-stage2-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: AST/ByteCode/libcxx/primitive-temporary.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage2/bin/clang -cc1 -internal-isystem /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage2/lib/clang/21/include -nostdsysteminc -std=c++2c -fexperimental-new-constant-interpreter -verify=expected,both /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage2/bin/clang -cc1 -internal-isystem /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage2/lib/clang/21/include -nostdsysteminc -std=c++2c -fexperimental-new-constant-interpreter -verify=expected,both /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp
error: 'both-warning' diagnostics seen but not expected: 
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 168: unqualified call to 'std::move'
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 168: unqualified call to 'std::move'
error: 'both-note' diagnostics seen but not expected: 
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 182: while substituting deduced template arguments into function template 'operator()' [with _Ip = T *]
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 182: in instantiation of requirement here
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 181: while substituting template arguments into constraint expression here
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 188: while checking the satisfaction of concept '__indirectly_readable_impl<T *>' requested here
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 188: while substituting template arguments into constraint expression here
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 221: (skipping 1 context in backtrace; use -ftemplate-backtrace-limit=0 to see all)
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 221: while substituting template arguments into constraint expression here
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 238: while checking constraint satisfaction for template 'projected<T *, Proj>' required here
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 238: while substituting template arguments into constraint expression here
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 268: while checking constraint satisfaction for template 'operator()<T *, T *, Proj, UnaryVoid>' required here
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 268: in instantiation of function template specialization 'std::ranges::__for_each::operator()<T *, T *, Proj, UnaryVoid>' requested here
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 182: while substituting deduced template arguments into function template 'operator()' [with _Ip = std::__projected_impl<T *, Proj>::__type]
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 182: in instantiation of requirement here
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 181: while substituting template arguments into constraint expression here
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 188: while checking the satisfaction of concept '__indirectly_readable_impl<std::__projected_impl<T *, Proj>::__type>' requested here
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 188: while substituting template arguments into constraint expression here
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 192: (skipping 3 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 201: while substituting template arguments into constraint expression here
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 238: while checking the satisfaction of concept 'indirectly_unary_invocable<UnaryVoid, std::__projected_impl<T *, Proj>::__type>' requested here
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 238: while substituting template arguments into constraint expression here
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 268: while checking constraint satisfaction for template 'operator()<T *, T *, Proj, UnaryVoid>' required here
  File /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 268: in instantiation of function template specialization 'std::ranges::__for_each::operator()<T *, T *, Proj, UnaryVoid>' requested here
24 errors generated.

--

********************


```

</details>

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


More information about the cfe-commits mailing list