[llvm-bugs] [Bug 26219] New: crash in llvm::ReplaceableMetadataImpl::get during 'Combine redundant instructions'

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jan 20 03:55:02 PST 2016


            Bug ID: 26219
           Summary: crash in llvm::ReplaceableMetadataImpl::get during
                    'Combine redundant instructions'
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: rogero at howzatt.demon.co.uk
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 15672
  --> https://llvm.org/bugs/attachment.cgi?id=15672&action=edit
Original source code

The following short program crashes with clang++ with -O2 or -O3:

#include <map>
#include <vector>

int main()
    std::map<int, int> m;

    const std::vector<char> vec { 0 };
    for (auto it = vec.begin(); it != vec.end(); ++it)

I'm using a clang built from a recent (Jan 11th) git snapshot.

clang++ -std=c++11 -O2 -Weverything combine-redundant-instructions-crash.cxx -c

  uname -a: Linux linuxdev121 2.6.32-573.3.1.el6.x86_64 #1 SMP Thu Aug 13
12:55:33 CDT 2015 x86_64 x86_64 x86_64 GNU/Linux

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160120/9900970c/attachment.html>

More information about the llvm-bugs mailing list