Public bug reported:

This source file crashes clang++:

#include <iostream>

int main(int argc, char** argv)
{
        std::cout << std::__lg(10) << std::endl;
}

with message:

fatal error: error in backend: Cannot select: 0x30d4080: i32 = fcos 0x30d4280 
[ORD=1] [ID=4]
  0x30d4280: i32,ch = CopyFromReg 0x30bc310, 0x30d3e80 [ORD=1] [ID=3]
    0x30d3e80: i32 = Register %vreg10 [ORD=1] [ID=1]
In function: _ZSt4__lgi

I get this error several times in my (closed) sources and could reduce
it to the above. Another similar error from my original sources:

fatal error: error in backend: Cannot select: 0x5fab1c0: i64 = fcos 0x5faa2b0 
[ORD=738] [ID=4]
      
dbg:/usr/bin/../lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/bits/stl_algobase.h:991
  0x5faa2b0: i64,ch = CopyFromReg 0x4b891a0, 0x5fab8c0 [ORD=738] [ID=3] 
dbg:/usr/bin/../lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/bits/stl_algobase.h:991
    0x5fab8c0: i64 = Register %vreg10 [ORD=738] [ID=1]
In function: _ZSt4__lgl

Package version: 3.2-1~exp5ubuntu2

** Affects: clang (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1133256

Title:
  Clang++ crashes with several source files

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/clang/+bug/1133256/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to