Issue 32: Guard against constructors consuming unsized arrays.
This commit is contained in:
@@ -24,7 +24,8 @@ ERROR: 0:93: 'length' : array must be declared with a size before using this me
|
||||
ERROR: 0:101: '[' : array index out of range '5'
|
||||
ERROR: 0:104: 'constructor' : array constructor must have at least one argument
|
||||
ERROR: 0:104: '=' : cannot convert from 'const float' to 'global implicitly-sized array of int'
|
||||
ERROR: 25 compilation errors. No code generated.
|
||||
ERROR: 0:106: 'constructor' : array argument must be sized
|
||||
ERROR: 26 compilation errors. No code generated.
|
||||
|
||||
|
||||
Shader version: 130
|
||||
@@ -258,6 +259,11 @@ ERROR: node is still EOpNull!
|
||||
0:101 5 (const int)
|
||||
0:101 Constant:
|
||||
0:101 4.000000
|
||||
0:106 Sequence
|
||||
0:106 move second child to first child (temp float)
|
||||
0:106 'b' (global float)
|
||||
0:106 Constant:
|
||||
0:106 0.000000
|
||||
0:? Linker Objects
|
||||
0:? 'gu' (global implicitly-sized array of float)
|
||||
0:? 'g4' (global 4-element array of float)
|
||||
@@ -267,6 +273,8 @@ ERROR: node is still EOpNull!
|
||||
0:? 'f' (global float)
|
||||
0:? 'gUnusedUnsized' (global implicitly-sized array of float)
|
||||
0:? 'i' (global implicitly-sized array of int)
|
||||
0:? 'emptyA' (global implicitly-sized array of float)
|
||||
0:? 'b' (global float)
|
||||
|
||||
|
||||
Linked fragment stage:
|
||||
@@ -503,6 +511,11 @@ ERROR: node is still EOpNull!
|
||||
0:101 5 (const int)
|
||||
0:101 Constant:
|
||||
0:101 4.000000
|
||||
0:106 Sequence
|
||||
0:106 move second child to first child (temp float)
|
||||
0:106 'b' (global float)
|
||||
0:106 Constant:
|
||||
0:106 0.000000
|
||||
0:? Linker Objects
|
||||
0:? 'gu' (global 4-element array of float)
|
||||
0:? 'g4' (global 4-element array of float)
|
||||
@@ -512,4 +525,6 @@ ERROR: node is still EOpNull!
|
||||
0:? 'f' (global float)
|
||||
0:? 'gUnusedUnsized' (global 1-element array of float)
|
||||
0:? 'i' (global 1-element array of int)
|
||||
0:? 'emptyA' (global 1-element array of float)
|
||||
0:? 'b' (global float)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user