| Issue |
243495
|
| Summary |
"error: no matching function for call to 'invoke'" after "Speed up std::invoke() compile times (~60%-85% reduction) - #213403#213403"
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
mikaelholmen
|
The following
https://godbolt.org/z/osKrY5TEs
fails with
```
<source>:8:30: error: no matching function for call to 'invoke'
8 | int call(AS1Int &x) { return std::invoke(get, x); }
| ^~~~~~~~~~~
/cefs/b3/b3f1d6608e781af2e2523569_clang-trunk-20261116/bin/../include/c++/v1/__functional/invoke.h:29:66: note: candidate template ignored: substitution failure [with _Args = <int (&)(const AS1Int &), AS1Int &>]: reinterpret_cast from 'int' to '__attribute__((address_space(1))) int &' is not allowed
29 | _LIBCPP_CONSTEXPR_SINCE_CXX20 __direct_invoke_result_t<_Args...> invoke(_Args&&... __args)
| ^
1 error generated.
Compiler returned: 1
```
This starts happening with commit b2f7f43b949
```
Speed up std::invoke() compile times and rename __invoke_result_t to __direct_invoke_result_t (#213403)
This may surface a pre-existing recursive template instantiation compiler bug (#236677) in user code.
```
It compiled succesfully before.
Initially reported in
https://github.com/llvm/llvm-project/pull/213403#issuecomment-6950361945
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs