[Mesa-dev] [Bug 29519] New: [glsl2] Compiler should generate better diagnostics for use of reserved words
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Aug 11 16:12:43 PDT 2010
https://bugs.freedesktop.org/show_bug.cgi?id=29519
Summary: [glsl2] Compiler should generate better diagnostics
for use of reserved words
Product: Mesa
Version: git
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: Mesa core
AssignedTo: mesa-dev at lists.freedesktop.org
ReportedBy: idr at freedesktop.org
At each version of GLSL there are a number of words reserved for future use
(see section 3.6 in the GLSL spec). The lexer processes these and generates
tokens for them. Upon encountering these tokens, the parse will generate error
messages that are not useful. For example, using the keyword "half" for a
function name in a GLSL 1.10 shader results in the diagnostic:
error: 0:3(1): error: empty declaration list
A better message would be:
error: 0:3(1): error: invalid use of reserved word `half'
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the mesa-dev
mailing list