[PATCH] D74361: [Clang] Undef attribute for global variables
Jon Chesterfield via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 17 15:13:19 PDT 2021
JonChesterfield added a comment.
This appears to have missed a case for openmp. Credit to @jdoerfert for the repro: https://godbolt.org/z/xWTYbv
struct DST {
long X;
long Y;
};
#pragma omp declare target
DST G2 [[clang::loader_uninitialized, clang::address_space(5)]];
#pragma omp end declare target
error: no matching constructor for initialization of '__attribute__((address_space(5))) DST'
There shouldn't be a constructor call there. Noting the limitation here so I can find it easily in the near future.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D74361/new/
https://reviews.llvm.org/D74361
More information about the cfe-commits
mailing list