Skip to content

[C++4OpenCL] Templates and address spaces #154019

@piotrrak

Description

@piotrrak

Please consider this code (from my attempt on compiling libc++ in OpenCL C++ dialect)

https://godbolt.org/z/EYGs97zKs

It is hard for me to imagine what __generic char typename even is.

I am looking for confirmation that types shouldn't propagate address space in such cases unless those are pointers/references,
and I should consider it bug.

Should such idiomatic code C++ should compile (please disregard __constant case which is separate issue) or it is just how it was specified?

Still wrapping my head around address space rules, help with understanding the correct behavior would be really appreciated.

For function types the it wording is pretty clear, thus #153508 and #153459 which I consider a progress in right direction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions