[llvm-bugs] [Bug 25156] New: Clang++ crashes on #include<string> or #include<iostream>

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Oct 12 23:28:31 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=25156

            Bug ID: 25156
           Summary: Clang++ crashes on #include<string> or
                    #include<iostream>
           Product: clang
           Version: 3.5
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: fcapobianco01 at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 15062
  --> https://llvm.org/bugs/attachment.cgi?id=15062&action=edit
Contains preprocessed source and crash backtrace.

Using clang++ command: clang++ -w -S -emit-llvm sample_save.c -o sample.bc 

Error is produced when #include<string> or #include<iostream> are added to
source. If these are excluded clang++ will not crash and will display compiler
errors as expected. 

Note the source code was generated using the Hex-Rays decompiler. Despite this
I have had success decompiling C binaries and recompiling with clang, however
this error is with decompiled C++ binaries.

-- 
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/20151013/9424f471/attachment.html>


More information about the llvm-bugs mailing list