New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[clang] ICE: Assertion `isa<To>(Val) && "cast<Ty>() argument of incompatible type!"' failed. boost-1.83 and clang-17.0.0_rc2 #64885
Comments
@llvm/issue-subscribers-clang-frontend |
It is possible a duplicate of: #39319 |
The build succeeds with clang-16. Will look into reducing. |
Testing the reproducer in #39319 (comment) it fails similarily to here with clang-17. It succeeds with clang-15 and clang-16 though. To my eye it looks like a duplicate, just odd seeing how clang-15 and clang-16 didn't suffer from this. Plausibly stopped triggering in clang-14 or clang-15 and now it reappears? |
Closing as duplicate |
[Clang] Fix ResolveConstructorOverload to not select a conversion function if we are going use copy elision ResolveConstructorOverload needs to check properly if we are going to use copy elision we can't use a conversion function. This fixes: llvm/llvm-project#39319 llvm/llvm-project#60182 llvm/llvm-project#62157 llvm/llvm-project#64885 llvm/llvm-project#65568 Differential Revision: https://reviews.llvm.org/D148474 This should fix 'Assertion failed: (isa<To>(Val) && "cast<Ty>() argument of incompatible type!")' errors when building devel/boost-libs, specifically libs/url/src/segments_view.cpp. Bump __FreeBSD_version so this fix can easily be detected from devel/boost-all/compiled.mk. PR: 273335
[Clang] Fix ResolveConstructorOverload to not select a conversion function if we are going use copy elision ResolveConstructorOverload needs to check properly if we are going to use copy elision we can't use a conversion function. This fixes: llvm/llvm-project#39319 llvm/llvm-project#60182 llvm/llvm-project#62157 llvm/llvm-project#64885 llvm/llvm-project#65568 Differential Revision: https://reviews.llvm.org/D148474 This should fix 'Assertion failed: (isa<To>(Val) && "cast<Ty>() argument of incompatible type!")' errors when building devel/boost-libs, specifically libs/url/src/segments_view.cpp. Bump __FreeBSD_version so this fix can easily be detected from devel/boost-all/compiled.mk. PR: 273335 (cherry picked from commit bcd401b)
[Clang] Fix ResolveConstructorOverload to not select a conversion function if we are going use copy elision ResolveConstructorOverload needs to check properly if we are going to use copy elision we can't use a conversion function. This fixes: llvm/llvm-project#39319 llvm/llvm-project#60182 llvm/llvm-project#62157 llvm/llvm-project#64885 llvm/llvm-project#65568 Differential Revision: https://reviews.llvm.org/D148474 This should fix 'Assertion failed: (isa<To>(Val) && "cast<Ty>() argument of incompatible type!")' errors when building devel/boost-libs, specifically libs/url/src/segments_view.cpp. Bump __FreeBSD_version so this fix can easily be detected from devel/boost-all/compiled.mk. PR: 273335 (cherry picked from commit bcd401b)
LLVM from llvmorg-17.0.0-rc2 tag
https://bugs.gentoo.org/912678
The text was updated successfully, but these errors were encountered: