Date: Sun, 10 Jul 2016 10:09:04 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 210958] base clang: Assertion failed Message-ID: <bug-210958-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D210958 Bug ID: 210958 Summary: base clang: Assertion failed Product: Base System Version: 9.3-STABLE Hardware: i386 OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: andre@fbsd.a.e4m.org CC: freebsd-i386@FreeBSD.org CC: freebsd-i386@FreeBSD.org Created attachment 172307 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D172307&action= =3Dedit bad.cpp For some reasons I won't discuss here I tried to build firefox-esr with the bundled icu. Base system's clang failes here with an assertion: Assertion failed: ((OtherT->isIntegerType() && ConstantT->isIntegerType()) = && "comparison with non-integer type"), function DiagnoseOutOfRangeComparison, file /src/src-9/lib/clang/libclangsema/../../../contrib/llvm/tools/clang/lib/Sem= a/SemaChecking.cpp, line 4871. To reproduce simply compile attached "bad.cpp" by running "clang -cc1 bad.c= pp". A fix to make it compile (not to fix clang!!!) can be made by this patch: --- bad.cpp 2016-07-10 11:51:30.236826000 +0200 +++ bad.cpp 2016-07-10 11:51:30.237273000 +0200 @@ -12069,7 +12069,8 @@ pthread_mutex_unlock(&initMutex); return TRUE; // Caller will next call the init function. } else { - while (uio.fState =3D=3D 1) { + int32_t XXXstate; + while ( (XXXstate=3Duio.fState) =3D=3D 1) { // Another thread is currently running the initialization. // Wait until it completes. pthread_cond_wait(&initCondition, &initMutex); --=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-210958-8>