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)
The content about defining duplicate variable is conflict in The OpenGL ES Sh...
Status: NEW
Product: OpenGL-ES
Classification: Unclassified
Component: API Specification
2.0
PC Windows
: P3 normal
: ---
Assigned To: Tom Olson
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-11 19:01 PST by shwang
Modified: 2013-06-19 15:20 PDT (History)
0 users

See Also:


Attachments

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.