<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 --- - protoc miscompiled by clang"
   href="https://llvm.org/bugs/show_bug.cgi?id=22940">22940</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>protoc miscompiled by clang
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </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>-New Bugs
          </td>
        </tr>

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

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

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>protoc, used in the Chromium build, started miscompiling list night.

Last green build at Clang revision: r232443, first bad: r232457

Repro in Chromium:
$ ninja -C out/Debug
gen/protoc_out/components/autofill/content/browser/risk/proto/fingerprint.pb.cc

The actual failing command:

$ out/Debug/protoc --cpp_out
out/Debug/gen/protoc_out/components/autofill/content/browser/risk/proto
--python_out out/Debug/pyproto/components/autofill/content/browser/risk/proto
--proto_path=components/autofill/content/browser/risk/proto
components/autofill/content/browser/risk/proto/fingerprint.proto

top of the stack:

#0  std::pair<google::protobuf::Descriptor const*, int>::pair (this=0x591e48)
at
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/bits/stl_pair.h:109
#1  0x00000000004ee05c in
google::protobuf::SimpleDescriptorDatabase::DescriptorIndex<std::pair<void
const*, int> >::FindFile (this=0x5e8018,
filename="google/protobuf/descriptor.proto") at
../../third_party/protobuf/src/google/protobuf/descriptor_database.cc:176
#2  0x00000000004ebc0c in
google::protobuf::EncodedDescriptorDatabase::FindFileByName (this=0x5e8010,
filename="google/protobuf/descriptor.proto", output=0x7fffffffc4f8) at
../../third_party/protobuf/src/google/protobuf/descriptor_database.cc:331
#3  0x000000000047f448 in
google::protobuf::DescriptorPool::TryFindFileInFallbackDatabase (this=0x5e8130,
name="google/protobuf/descriptor.proto") at
../../third_party/protobuf/src/google/protobuf/descriptor.cc:1324
#4  0x000000000047f316 in google::protobuf::DescriptorPool::FindFileByName
(this=0x5e8130, name="google/protobuf/descriptor.proto") at
../../third_party/protobuf/src/google/protobuf/descriptor.cc:970
#5  0x00000000004bfa68 in
google::protobuf::protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto ()
at ../../third_party/protobuf/src/google/protobuf/descriptor.pb.cc:95</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>