Clang++ crashes with several source files

Bug #1133256 reported by André Stein
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
clang (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

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

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in clang (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.