BlamKiwi / angleproject

Automatically exported from code.google.com/p/angleproject
Other
0 stars 0 forks source link

translator: Initializers of global variables must be constant expressions #988

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
See sections entitled 'Storage qualifiers' in all relevant ESSL specs. Right at 
the end they have language saying:

'Initializers may only be used in declarations of globals with no storage 
qualifier or with a const qualifier. Such initializers must be a constant 
expression.'

This means we should revert the logic in 
https://chromium-review.googlesource.com/243581 (issue 878) and generate errors 
instead.

Olli feel free to grab this if you're working on it.

Also see the conversation on https://github.com/KhronosGroup/WebGL/pull/940, 
for potential conflicts with existing applications.

Original issue reported on code.google.com by jmad...@chromium.org on 28 Apr 2015 at 1:56

GoogleCodeExporter commented 9 years ago

Original comment by jmad...@chromium.org on 29 Apr 2015 at 2:55

GoogleCodeExporter commented 9 years ago
Issue 878 has been merged into this issue.

Original comment by jmad...@chromium.org on 29 Apr 2015 at 2:56

GoogleCodeExporter commented 9 years ago
Grabbing this, this needs to be fixed without removing the global init helper 
to support global short-circuiting operator unfolding.

Original comment by oetu...@nvidia.com on 12 May 2015 at 11:53