[Bug 227941] clang assertion when compiling C++ code with -fblocks
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu May 3 17:17:24 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227941
Dimitry Andric <dim at FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|New |Open
Summary|llvm crash when compiling |clang assertion when
|specific code |compiling C++ code with
| |-fblocks
See Also| |https://bugs.llvm.org/show_
| |bug.cgi?id=37328
CC| |dim at FreeBSD.org
Assignee|toolchain at FreeBSD.org |dim at FreeBSD.org
--- Comment #5 from Dimitry Andric <dim at FreeBSD.org> ---
I can reproduce, also with newer versions of clang. If assertions are enabled,
it gives:
Assertion failed: (isa<X>(Val) && "cast<Ty>() argument of incompatible type!"),
function cast, file /usr/src/contrib/llvm/include/llvm/Support/Casting.h, line
255.
Minimized test case:
// clang -cc1 -triple x86_64-- -S -fblocks bug227941-min.cpp
class a {
public:
template <class b> a(b);
};
class {
public:
int c(a);
} d;
void f() {
__attribute__((__blocks__(byref))) int e = d.c([] {});
}
Submitted upstream as: https://bugs.llvm.org/show_bug.cgi?id=37328
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-toolchain
mailing list