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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to