Skip to content

Fails to build with C++14 #3490

@steffenlarsen

Description

@steffenlarsen

Describe the bug
Building with DPC++ with C++14 causes errors. Looks like 4524a6b broke C++14 support and the only test that used it was removed shortly after: 815b43b

Among other similar errors, the commands results in the error:

.../include/sycl/CL/sycl/kernel_handler.hpp:51:13: error: 'auto' not allowed in template parameter until C++17
  template <auto &S, typename T = std::remove_reference_t<decltype(S)>,
            ^~~~
.../include/sycl/CL/sycl/kernel_handler.hpp:52:35: error: no template named 'is_fundamental_v' in namespace 'std'; did you mean 'is_fundamental'?
            std::enable_if_t<std::is_fundamental_v<T>> * = nullptr>
                             ~~~~~^
.../include/c++/7/type_traits:593:12: note: 'is_fundamental' declared here
    struct is_fundamental
           ^

Has C++14 support been dropped in its entirety?

To Reproduce
Build benchmark by running:

git clone https://gitlab.com/NERSC/nersc-proxies/su3_bench.git
cd su3_bench
make -f Makefile.dpcpp USE_SYCL=1 CC=path/to/clang++

Environment:

  • OS: Linux
  • Device: NVIDIA GPU
  • DPC++ version: 77d4fdf

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions