[Mesa-dev] [Bug 101766] Assertion `!"invalid type"' failed when constant expression involves literal of different type

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Jul 12 16:58:36 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=101766

--- Comment #2 from David R. MacIver <david at drmaciver.com> ---
> So makes sense that i2f wants an int input. Something must be auto-converting the int to a float, but then leaving the i2f in? Odd.

Note that the correct behaviour here is a compile error. If I remove the vec2()
call I get an error "0:4(2): error: initializer of type int cannot be assigned
to variable of type float"

So the problem is probably less auto-conversion and more bad code putting the
compiler in an invalid state as it continues error checking.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170712/89ae7f39/attachment.html>


More information about the mesa-dev mailing list