//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // UNSUPPORTED: c++98, c++03 // See GCC PR63723. // UNSUPPORTED: gcc-4.9 // // // [simd.class] // template explicit simd(G&& gen); #include #include using namespace std::experimental::parallelism_v2; template auto not_supported_native_simd_ctor(Args&&... args) -> decltype(native_simd(std::forward(args)...), void()) = delete; template void not_supported_native_simd_ctor(...) {} template auto supported_native_simd_ctor(Args&&... args) -> decltype(native_simd(std::forward(args)...), void()) {} template void supported_native_simd_ctor(...) = delete; void compile_generator() { supported_native_simd_ctor([](int i) { return i; }); not_supported_native_simd_ctor([](int i) { return float(i); }); not_supported_native_simd_ctor([](intptr_t i) { return (int*)(i); }); not_supported_native_simd_ctor([](int* i) { return i; }); } int main() {}