[PATCH] D102248: [C++4OpenCL] Fix initialization of __constant constructors without arguments
Ole Strohm via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed May 12 07:06:56 PDT 2021
olestrohm added inline comments.
================
Comment at: clang/test/SemaOpenCLCXX/addrspace-constructors.clcpp:36
+ Z() __local = default;
+ Z() __global = default;
+ constexpr Z() __constant : z(0) {}
----------------
Anastasia wrote:
> We seem to be missing the coverage with __constant and `= default`.
This is because of the struct W below, you can't default a constexpr constructor, but __constant constructors need to be constexpr. Though it is currently possible to create them, they just can't actually be used. Or maybe just combine Z and W?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102248/new/
https://reviews.llvm.org/D102248
More information about the cfe-commits
mailing list