[Bug 79724] New: switch statement type check
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Jun 6 05:13:25 PDT 2014
https://bugs.freedesktop.org/show_bug.cgi?id=79724
Priority: medium
Bug ID: 79724
Assignee: idr at freedesktop.org
Summary: switch statement type check
QA Contact: intel-3d-bugs at lists.freedesktop.org
Severity: normal
Classification: Unclassified
OS: All
Reporter: lemody at gmail.com
Hardware: Other
Status: NEW
Version: git
Component: glsl-compiler
Product: Mesa
Switch statement needs to do type checking in following condition. Following
example should not fail miserably:
--- 8< ---
uint x = 2u;
switch (x) {
case 1 : ...
case 2 : ...
case 3 : ...
default:
}
--- 8< ---
Right now the glsl_type of switch cases will be 'int' but the expression is
'uint' and things fail later on.
--
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20140606/b334595f/attachment.html>
More information about the intel-3d-bugs
mailing list