llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.22k stars 11.65k forks source link

Default -x cuda C++ -std is C++98 #42412

Closed llvmbot closed 1 year ago

llvmbot commented 5 years ago
Bugzilla Link 43067
Version trunk
OS Linux
Reporter LLVM Bugzilla Contributor

Extended Description

When compiling with -x cuda, the default __cplusplus version of clang still points to C++98 (199711L) instead of the otherwise default of the (host) compiler.

This is a bit confusing and probably not intentional? Should it be identical to the current default in the other frontends (e.g. C++14)?

arsenm commented 1 year ago

It is 2014 now