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 auto err= [&]() {}; //expected-note{{candidate function not viable: 'this' object is in address space '__constant', but method expects object in address space '__generic'}}
16
16
err(); //expected-error-re{{no matching function for call to object of type '__constant (lambda at {{.*}})'}}
auto priv3= []() __global {}; //expected-note{{candidate function not viable: 'this' object is in address space '__private', but method expects object in address space '__global'}} //expected-note{{conversion candidate of type 'void (*)()'}}
@@ -38,7 +38,7 @@ __kernel void test_qual() {
38
38
const1(); //expected-error{{no matching function for call to object of type '__constant (lambda at}}
39
39
__constant auto const2= []() __generic{}; //expected-note{{candidate function not viable: 'this' object is in address space '__constant', but method expects object in address space '__generic'}} //expected-note{{conversion candidate of type 'void (*)()'}}
40
40
const2(); //expected-error{{no matching function for call to object of type '__constant (lambda at}}
0 commit comments