[LLVMbugs] [Bug 16680] New: Clang crashes on (illegal) reinterpret_cast from float to int if result is written to ostream

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jul 23 05:35:13 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=16680

            Bug ID: 16680
           Summary: Clang crashes on (illegal) reinterpret_cast from float
                    to int if result is written to ostream
           Product: clang
           Version: 3.3
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: florian.weber at sfz-bw.de
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 10914
  --> http://llvm.org/bugs/attachment.cgi?id=10914&action=edit
my commandline

Clang crashes on the following code after emiting diagnostics, that it is
illegal:

#include <iostream>

int main(){ std::cout << reinterpret_cast<int>(0.0f); }

I did not manage to make it crash without writing the result to std::cout.

I am using libstdc++ 4.8.0 as standard-library.

-- 
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/20130723/79c833c2/attachment.html>


More information about the llvm-bugs mailing list