intel / llvm

Intel staging area for llvm.org contribution. Home for Intel LLVM-based projects.
Other
1.26k stars 743 forks source link

Deferred diagnostics are broken for In-class initializers #1032

Open Fznamznon opened 4 years ago

Fznamznon commented 4 years ago

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.

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be automatically closed in 30 days.

Fznamznon commented 2 years ago

The issue is still here.