| Summary: | Clang 10 crashes building CPAN module SYBER/Date-5.2.0: can't implicitly cast lvalue to rvalue with this cast kind: lib/Sema/Sema.cpp:538 | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | eserte12 | ||||
| Component: | bin | Assignee: | Dimitry Andric <dim> | ||||
| Status: | Closed DUPLICATE | ||||||
| Severity: | Affects Some People | CC: | dim, emaste, toolchain | ||||
| Priority: | --- | Keywords: | crash | ||||
| Version: | CURRENT | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| URL: | https://metacpan.org/release/SYBER/Date-5.2.0 | ||||||
| Attachments: |
|
||||||
|
Description
eserte12
2020-07-06 20:25:07 UTC
This turns out to be the same issue as bug 245530. I reported it upstream as https://bugs.llvm.org/show_bug.cgi?id=45521, but there was no feedback yet. A commit references this bug: Author: dim Date: Wed Jul 8 16:50:48 UTC 2020 New revision: 363013 URL: https://svnweb.freebsd.org/changeset/base/363013 Log: Merge commit 065fc1eafe7c from llvm git (by Richard Smith): PR45521: Preserve the value kind when performing a standard conversion sequence on a glvalue expression. If the sequence is supposed to perform an lvalue-to-rvalue conversion, then one will be specified as the first conversion in the sequence. Otherwise, one should not be invented. This should fix clang crashing with "can't implicitly cast lvalue to rvalue with this cast kind", followed by "UNREACHABLE executed at /usr/src/contrib/llvm-project/clang/lib/Sema/Sema.cpp:538!", when building recent versions of Ceph, and the CPAN module SYBER/Date-5.2.0. Reported by: Willem Jan Withagen <wjw@digiware.nl>, eserte12@yahoo.de PR: 245530, 247812 MFC after: 3 days Changes: head/contrib/llvm-project/clang/lib/Sema/SemaExprCXX.cpp head/contrib/llvm-project/clang/lib/Sema/SemaOverload.cpp ^Triage: Close as dupe of bug 245530, tracking merges in that issue *** This bug has been marked as a duplicate of bug 245530 *** ^Triage: Assign to committer resolving A commit references this bug: Author: dim Date: Sat Jul 11 09:43:18 UTC 2020 New revision: 363092 URL: https://svnweb.freebsd.org/changeset/base/363092 Log: MFC r363013: Merge commit 065fc1eafe7c from llvm git (by Richard Smith): PR45521: Preserve the value kind when performing a standard conversion sequence on a glvalue expression. If the sequence is supposed to perform an lvalue-to-rvalue conversion, then one will be specified as the first conversion in the sequence. Otherwise, one should not be invented. This should fix clang crashing with "can't implicitly cast lvalue to rvalue with this cast kind", followed by "UNREACHABLE executed at /usr/src/contrib/llvm-project/clang/lib/Sema/Sema.cpp:538!", when building recent versions of Ceph, and the CPAN module SYBER/Date-5.2.0. Reported by: Willem Jan Withagen <wjw@digiware.nl>, eserte12@yahoo.de PR: 245530, 247812 Changes: _U stable/11/ _U stable/11/contrib/llvm-project/clang/ stable/11/contrib/llvm-project/clang/lib/Sema/SemaExprCXX.cpp stable/11/contrib/llvm-project/clang/lib/Sema/SemaOverload.cpp _U stable/12/ stable/12/contrib/llvm-project/clang/lib/Sema/SemaExprCXX.cpp stable/12/contrib/llvm-project/clang/lib/Sema/SemaOverload.cpp |