-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
[C++17] boost/url, Assertion failed: (isa<To>(Val) && "cast<Ty>() argument of incompatible type!"), function cast, file llvm/include/llvm/Support/Casting.h, line 579. #60182
Labels
c++17
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
confirmed
Verified by a second party
duplicate
Resolved as duplicate
Comments
DimitryAndric
added
c++17
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
new issue
labels
Jan 21, 2023
@llvm/issue-subscribers-c-17 |
@llvm/issue-subscribers-clang-frontend |
This looks like a duplicate of: #39319 but the reproducer looks helpful. |
shafik
added
confirmed
Verified by a second party
duplicate
Resolved as duplicate
labels
Jan 21, 2023
Closing in favor of #39319. |
freebsd-git
pushed a commit
to freebsd/freebsd-src
that referenced
this issue
Mar 20, 2024
[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
freebsd-git
pushed a commit
to freebsd/freebsd-src
that referenced
this issue
Mar 23, 2024
[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)
freebsd-git
pushed a commit
to freebsd/freebsd-src
that referenced
this issue
Mar 23, 2024
[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)
bsdjhb
pushed a commit
to bsdjhb/cheribsd
that referenced
this issue
Aug 5, 2024
[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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
c++17
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
confirmed
Verified by a second party
duplicate
Resolved as duplicate
As reported in https://bugs.freebsd.org/269067, compiling boost 1.81.0 using clang with assertions enabled, results in an assertion while compiling
boost_1_81_0/libs/url/src/src.cpp
:Minimized test case:
This reproduces with both the oldest and the newest versions of clang that I have, so it is a very long standing bug. It is also specifically C++17 related, since using
-std=c++11
or-std=c++14
makes the assertion disappear.The text was updated successfully, but these errors were encountered: