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

            Bug ID: 32615
           Summary: executable coredump under ubuntu 14.04 libgcc 4.8
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: ELF
          Assignee: unassignedb...@nondot.org
          Reporter: m...@steazzalini.it
                CC: llvm-bugs@lists.llvm.org

Considering the following source code:

#include <iostream>
#include <cmath>

int main() {
  using namespace std;
  const auto p = pow(1, 2);
  cout << p;
}

Compiliing it with:
clang++-4.0 test.cpp -o test -std=c++1z -stdlib=libc++ -fuse-ld=lld -static
-lc++ -lc++abi -lpthread

Everything compiles without problems but executing test results in a coredump.
Using ld instead of lld  solves the problem.
Omitting -static -lc++ -lc++abi -lpthread also works fine. 

This is strictly related with ubuntu 14.04 using libgcc 4.8

// Stefano

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to