You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
__constant__ aggregate initializer values return undef in host compilation, but things work when we access individual field values or make a local copy.
struct S { int s; };
const __constant__ S const_s = { 77 };
__host__ S works () {
S s = const_s;
return s; // returns {77}
}
__host__ S broken () {
return const_s; // returns undef
}