[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:56:13 PST 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux-bootstrap-ubsan` running on `sanitizer-buildbot10` while building `clang` at step 2 "annotate".

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

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

```
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 86616 tests, 72 workers --
Testing: 
FAIL: Clang :: AST/ByteCode/libcxx/primitive-temporary.cpp (62 of 86616)
******************** TEST 'Clang :: AST/ByteCode/libcxx/primitive-temporary.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/lib/clang/21/include -nostdsysteminc -std=c++2c -fexperimental-new-constant-interpreter -verify=expected,both /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/lib/clang/21/include -nostdsysteminc -std=c++2c -fexperimental-new-constant-interpreter -verify=expected,both /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp
error: 'both-warning' diagnostics seen but not expected: 
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 168: unqualified call to 'std::move'
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/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/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/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/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 182: in instantiation of requirement here
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 181: while substituting template arguments into constraint expression here
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/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/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 188: while substituting template arguments into constraint expression here
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/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/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 221: while substituting template arguments into constraint expression here
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/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/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 238: while substituting template arguments into constraint expression here
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/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/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/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/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/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/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 182: in instantiation of requirement here
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 181: while substituting template arguments into constraint expression here
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/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/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 188: while substituting template arguments into constraint expression here
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/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/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 201: while substituting template arguments into constraint expression here
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/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/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 238: while substituting template arguments into constraint expression here
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/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/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/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 11 (stage2/ubsan check) failure: stage2/ubsan check (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 86616 tests, 72 workers --
Testing: 
FAIL: Clang :: AST/ByteCode/libcxx/primitive-temporary.cpp (62 of 86616)
******************** TEST 'Clang :: AST/ByteCode/libcxx/primitive-temporary.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/lib/clang/21/include -nostdsysteminc -std=c++2c -fexperimental-new-constant-interpreter -verify=expected,both /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/lib/clang/21/include -nostdsysteminc -std=c++2c -fexperimental-new-constant-interpreter -verify=expected,both /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp
error: 'both-warning' diagnostics seen but not expected: 
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 168: unqualified call to 'std::move'
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/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/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/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/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 182: in instantiation of requirement here
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 181: while substituting template arguments into constraint expression here
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/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/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 188: while substituting template arguments into constraint expression here
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/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/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 221: while substituting template arguments into constraint expression here
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/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/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 238: while substituting template arguments into constraint expression here
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/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/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/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/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/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/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 182: in instantiation of requirement here
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 181: while substituting template arguments into constraint expression here
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/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/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 188: while substituting template arguments into constraint expression here
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/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/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 201: while substituting template arguments into constraint expression here
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/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/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 238: while substituting template arguments into constraint expression here
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/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/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/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 (stage3/ubsan check) failure: stage3/ubsan check (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 83706 tests, 72 workers --
Testing: 
FAIL: Clang :: AST/ByteCode/libcxx/primitive-temporary.cpp (78 of 83706)
******************** TEST 'Clang :: AST/ByteCode/libcxx/primitive-temporary.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/lib/clang/21/include -nostdsysteminc -std=c++2c -fexperimental-new-constant-interpreter -verify=expected,both /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/lib/clang/21/include -nostdsysteminc -std=c++2c -fexperimental-new-constant-interpreter -verify=expected,both /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp
error: 'both-warning' diagnostics seen but not expected: 
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 168: unqualified call to 'std::move'
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/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/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/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/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 182: in instantiation of requirement here
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 181: while substituting template arguments into constraint expression here
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/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/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 188: while substituting template arguments into constraint expression here
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/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/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 221: while substituting template arguments into constraint expression here
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/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/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 238: while substituting template arguments into constraint expression here
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/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/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/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/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/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/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 182: in instantiation of requirement here
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 181: while substituting template arguments into constraint expression here
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/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/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 188: while substituting template arguments into constraint expression here
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/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/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 201: while substituting template arguments into constraint expression here
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/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/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/AST/ByteCode/libcxx/primitive-temporary.cpp Line 238: while substituting template arguments into constraint expression here
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/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/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/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