[Webkit-unassigned] [Bug 199590] New: [WHLSL] When there is ambiguity between a variable (of struct type) and an enum, we should resolve to the variable

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 8 14:30:13 PDT 2019


https://bugs.webkit.org/show_bug.cgi?id=199590

            Bug ID: 199590
           Summary: [WHLSL] When there is ambiguity between a variable (of
                    struct type) and an enum, we should resolve to the
                    variable
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebGPU
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: rmorisset at apple.com

e.g.:
```
struct Foo {
    int bar;
}

enum x : int {
    baz = 0;
    bar = 1;
}

int f() {
    Foo x;
    return x.bar
}
```

Currently f() returns 1 in the implementation (from the enum) instead of 0 (from the zero-initialized struct).
This is against the spec, and from discussing this with Phil and the rest of the team, we agree that the behavior of the spec is more reasonable in that case.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190708/c1cb87c8/attachment.html>


More information about the webkit-unassigned mailing list