[Webkit-unassigned] [Bug 189290] [WHLSL] Taking the address of a ternary l-value expression produces an unrelated error

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 4 17:38:56 PDT 2018


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

--- Comment #1 from Thomas Denney <tdenney at apple.com> ---
(In reply to Thomas Denney from comment #0)
> Ternary expressions can be used as l-values:
> 
>     (someCondition ? a : b) = 42;
> 
> It should be possible to take the address of any l-value, however the
> following doesn’t work:
> 
>     int a = 42;
>     int b = 43;
>     thread int* c = (someCondition ? a : b);

Sorry, that should be

      thread int* c = &(someCondition ? a : b);

> 
> We should either disallow taking the address of a ternary expression,
> improve the current error message “Bad address space: undefined”, or support
> this.

-- 
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/20180905/2adc2c38/attachment.html>


More information about the webkit-unassigned mailing list