The following test case cannot be diagnosed with deferred diagnostics system:
int foo() { throw 1; }
struct S {
int bar = foo();
};
SYCL_EXTERNAL void bar() { S s; }
We do our reporting at a functiondecl->caller level, when the declcontext can actually be a CXXRecordDecl as well.
NOTE: This seems broken not only for SYCL, but for any other programming model which allows in-class initializes.
The following test case cannot be diagnosed with deferred diagnostics system:
We do our reporting at a functiondecl->caller level, when the declcontext can actually be a CXXRecordDecl as well. NOTE: This seems broken not only for SYCL, but for any other programming model which allows in-class initializes.