[Webkit-unassigned] [Bug 189029] New: ParseConstexpr is very general

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 27 16:24:39 PDT 2018


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

            Bug ID: 189029
           Summary: ParseConstexpr is very general
           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: mmaxfield at apple.com

It's called in a few places:

vector<float, 4> // that "4" is a constexpr
float[10] // that "10" is a constexpr

enum asdf : int {
    XYZ = -3 // that "-3" is a constexpr
}

switch (foo) {
    case MyEnum.XYZ: // that "MyEnum.XYZ" is a constexpr
}

Because of all that, parseConstexpr can return something like operator-((x + y).z)

We should do a bunch of filtering to make sure the right kind of constexprs are allowed in the various places where they are allowed.

-- 
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/20180827/b4dcb798/attachment.html>


More information about the webkit-unassigned mailing list