clang-omp / clang

clang with OpenMP 3.1 and some elements of OpenMP 4.0 support
clang-omp.github.com
Other
91 stars 15 forks source link

clang-omp++ crashes when compiling program #79

Closed lns closed 8 years ago

lns commented 8 years ago

clang-omp++ -fopenmp crashes on this program

#include <vector>
typedef std::vector<int> D;
template<typename T> void func(const D& d) {
    std::vector<T> v;
    #pragma omp parallel for
    for(size_t i=0;i<v.size();i++)
        v[i] = d;
}
void main() { func<int>(); }

clang-omp++ --version clang version 3.5.0 Target: x86_64-apple-darwin15.4.0 Thread model: posix

alexey-bataev commented 8 years ago

Sorry, clang-omp is not supported anymore (only offloading part is supported). Please use official clang/LLVM