From owner-freebsd-bugs@freebsd.org Sun Jul 10 10:09:04 2016 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 713C5B83E6B for ; Sun, 10 Jul 2016 10:09:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 474B9132B for ; Sun, 10 Jul 2016 10:09:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u6AA94r6015020 for ; Sun, 10 Jul 2016 10:09:04 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 210958] base clang: Assertion failed Date: Sun, 10 Jul 2016 10:09:04 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 9.3-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: andre@fbsd.a.e4m.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jul 2016 10:09:04 -0000 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.=