https://bugs.llvm.org/show_bug.cgi?id=37137

            Bug ID: 37137
           Summary: Clang-cl prevents `__restrict`ed struct members to
                    show in debugger
           Product: new-bugs
           Version: 6.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedb...@nondot.org
          Reporter: antoine.vugli...@free.fr
                CC: llvm-bugs@lists.llvm.org

When compiling with clang-cl and debugging info activated (/Zi), Visual
Studio's debugger is unable to access struct/class members that are marked with
`__restrict`. This however works with cl.exe.

Example:

```
struct Foo
{
    int * __restrict i;
};

int main(int argc, char** argv)
{
    Foo foo;

    return 0;
}
```

Compiling this code in debug and trying to visualize the value of `i` (either
from hovering it in the source pane or by the watch window) will only show
`<Unable to read memory>` or `class "Foo" has no member "i"`.
Removing the attribute will allow the debugger to inspect `foo.i`.

OS: Windows 10, Windows 7
VS: 2015U3
target: windows x86 and x64

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to