Khronos Public Bugzilla
Bug 769 - The content about defining duplicate variable is conflict in The OpenGL ES Shading Language(Language Version: 1.00 Document Revision: 17)
Summary: The content about defining duplicate variable is conflict in The OpenGL ES Sh...
Alias: None
Product: OpenGL-ES
Classification: Unclassified
Component: API Specification (show other bugs)
Version: 2.0
Hardware: PC Windows
: P3 normal
Target Milestone: ---
Assignee: Tom Olson
QA Contact:
Depends on:
Reported: 2013-01-11 19:01 PST by shwang
Modified: 2016-05-19 14:39 PDT (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description shwang 2013-01-11 19:01:39 PST
In page 28. 
The spec said "Within each scope, a name may be declared either as a variable declaration or as function declarations or as a structure."
And also give us an example:
"struct f {int x;};
int f; // Error: conflicts with the type 'f'"

But, in page 23.
The spec said "The name shares the same name space as other variables, types and functions.  All previously visible variables, types, constructors or functions with that name are hidden"
But no matter I define a struct with the same with a float variable in the same scope or not the same scope, the shader will compiler fail
Comment 1 Jon Leech 2013-06-19 15:20:45 PDT
Reassign OpenGL ES bugs in the public Bugzilla to the ES WG Chair so
they'll get more attention.
Comment 2 Jon Leech 2016-05-19 14:39:57 PDT
Per WG signoff 2016/05/18, closing all ES <= 2.0 bugs
more than one year old WONTFIX. We do not plan to
update these specs. If any of these issues are
relevant to ES 3.2, please open a new bug against
that version with the details updated to match the
current spec.