<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW " title="NEW --- - crashed compiling ICU in chromium on Linux" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D23638&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=HxvFQArFnYfhjK5oKLACzBL4PXGNmD3QwAg_HMsZjo8&s=Hex7PAPS8zNrKUlctTRPubG7oOxrl_vGghsmOCsZm8o&e=">23638</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>crashed compiling ICU in chromium on Linux
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>C++
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jshin@chromium.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=14372" name="attach_14372" title="preprocessed source">attachment 14372</a> <a href="attachment.cgi?id=14372&action=edit" title="preprocessed source">[details]</a></span>
preprocessed source

clang 3.7.0 crshed while compiling umutex.cpp in ICU in chromium with the
following error message. umutex.cpp in question is patched with a CL at
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__bugs.icu-2Dproject.org_trac_changeset_37326&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=HxvFQArFnYfhjK5oKLACzBL4PXGNmD3QwAg_HMsZjo8&s=AWBufZVW38Acw0SjHv_jcz4mgXE4FAenu0gwNcnJf8s&e=">http://bugs.icu-project.org/trac/changeset/37326</a>

1.      ../../third_party/icu/source/common/umutex.cpp:278:33: current parser
token '{'
2.      ../../third_party/icu/source/common/umutex.cpp:255:1
<Spelling=../../third_party/icu/source/common/unicode/uversion.h:117:45>:
parsing namespace 'icu_54'
3.      ../../third_party/icu/source/common/umutex.cpp:270:38: parsing function
body 'umtx_initImplPreInit'
4.      ../../third_party/icu/source/common/umutex.cpp:270:38: in compound
statement ('{}')
5.      ../../third_party/icu/source/common/umutex.cpp:277:12: in compound
statement ('{}')
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.7.0 (trunk 233105)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_bugs_&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=HxvFQArFnYfhjK5oKLACzBL4PXGNmD3QwAg_HMsZjo8&s=n4mS_xvc7npdswS28vD5_hWQF35c00s8y2Df7Hjp7oo&e=">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg: 


Stack trace is as following: 

clang:
/work/chromium/src/third_party/llvm/tools/clang/lib/Sema/SemaChecking.cpp:6016:
voi
d (anonymous namespace)::DiagnoseOutOfRangeComparison(clang::Sema &,
clang::BinaryOperator
 *, clang::Expr *, clang::Expr *, llvm::APSInt, bool): Assertion
`(OtherT->isIntegerType() && ConstantT->isIntegerType()) && "comparison with
non-integer type"' failed.
0  clang     0x00000000014b18ba llvm::sys::PrintStackTrace(llvm::raw_ostream&)
+ 421  clang     0x00000000014b2d3b
2  libc.so.6 0x00007f4c49141d40
3  libc.so.6 0x00007f4c49141cc9 gsignal + 57
4  libc.so.6 0x00007f4c491450d8 abort + 328
5  libc.so.6 0x00007f4c4913ab86
6  libc.so.6 0x00007f4c4913ac32
7  clang     0x0000000002045904
8  clang     0x000000000202e7a8
9  clang     0x000000000202f34b clang::Sema::CheckCompletedExpr(clang::Expr*,
clang::SourceLocation, bool) + 75
10 clang     0x000000000221e75c clang::Sema::ActOnFinishFullExpr(clang::Expr*,
clang::SourceLocation, bool, bool, bool) + 300
11 clang     0x0000000001eb4568
clang::Parser::ParseWhileStatement(clang::SourceLocation*) + 392
12 clang     0x0000000001eb15be
clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&)
+ 2654
13 clang     0x0000000001eb0acf
clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*) + 143
14 clang     0x0000000001eb8194 clang::Parser::ParseCompoundStatementBody(bool)
+ 1588
15 clang     0x0000000001eb195c
clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&)
+ 3580
16 clang     0x0000000001eb0acf
clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*) + 143
17 clang     0x0000000001eb3ef2
clang::Parser::ParseIfStatement(clang::SourceLocation*) + 1202
18 clang     0x0000000001eb16a6
clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&)
+ 2886
19 clang     0x0000000001eb0acf
clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*) + 143
20 clang     0x0000000001eb8194 clang::Parser::ParseCompoundStatementBody(bool)
+ 1588
21 clang     0x0000000001eb8b63
clang::Parser::ParseFunctionStatementBody(clang::Decl*,
clang::Parser::ParseScope&) + 195</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>