Date: Thu, 03 May 2018 17:17:22 +0000 From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 227941] clang assertion when compiling C++ code with -fblocks Message-ID: <bug-227941-29464-QdHTAzGMwy@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-227941-29464@https.bugs.freebsd.org/bugzilla/> References: <bug-227941-29464@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227941 Dimitry Andric <dim@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=3D37328 CC| |dim@FreeBSD.org Assignee|toolchain@FreeBSD.org |dim@FreeBSD.org --- Comment #5 from Dimitry Andric <dim@FreeBSD.org> --- I can reproduce, also with newer versions of clang. If assertions are enab= led, 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, l= ine 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 =3D d.c([] {}); } Submitted upstream as: https://bugs.llvm.org/show_bug.cgi?id=3D37328 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-227941-29464-QdHTAzGMwy>