Skip to content

[BUG]: cuda::std::span<bool> brace initialization fails with narrowing conversion error #7619

@PointKernel

Description

@PointKernel

Is this a duplicate?

Type of Bug

Compile-time Error

Component

libcu++

Describe the bug

Brace initialization {} of cuda::std::span<bool> fails with narrowing conversion errors, while parentheses initialization () works. This inconsistency is due to cuda::std::span<bool> internally using __nv_bool instead of bool.

How to Reproduce

https://godbolt.org/z/h4cM67hsT

Expected behavior

cuda::std::span should build and work as std::span in the given sample code.

Reproduction link

https://godbolt.org/z/h4cM67hsT

Operating System

No response

nvidia-smi output

No response

NVCC version

No response

Sub-issues

Metadata

Metadata

Assignees

Labels

breakingBreaking changelibcu++For all items related to libcu++

Type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions