Khronos Public Bugzilla
Bug 366 - Section 6.5.3 apparent contradiction
Section 6.5.3 apparent contradiction
Status: NEW
Product: OpenCL
Classification: Unclassified
Component: Specification
1.1
All All
: P3 normal
: ---
Assigned To: Aaftab Munshi
OpenCL Working Group
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-10-18 18:53 PDT by Peter Collingbourne
Modified: 2010-10-18 18:53 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 Peter Collingbourne 2010-10-18 18:53:34 PDT
Section 6.5.3 of the specification (version 1.1, revision 36) states that:

"Variables allocated in the __constant address space can only be defined as program scope variables and are required to be initialized."

Later on in the same section it states:

"Variables inside a function or in program scope can also be declared with the __constant address qualifier."

This seems to contradict the earlier statement that function scope variables are not permitted.