Skip to content

Clang fails to compile cuda code in C++20 mode, works in C++17 #47572

@bmanga

Description

@bmanga
Bugzilla Link 48228
Resolution FIXED
Resolved on Dec 09, 2020 09:48
Version 11.0
OS Linux
Blocks #47144
CC @bmanga,@jdoerfert,@Artem-B,@tstellar
Fixed by commit(s) 9a46505 4326792 aa29049 59012b6

Extended Description

Trying to compile the following cuda code:

__device__ void foo() {}
int main(){}

Works in C++17 mode, fails in C++20 mode with a series of errors about unknown type name '__device__' from the cuda_wrappers headers.

Metadata

Metadata

Assignees

Labels

bugzillaIssues migrated from bugzillacuda

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions