Issue 32: Guard against constructors consuming unsized arrays.
This commit is contained in:
parent
f498400945
commit
12a383379c
3 changed files with 41 additions and 13 deletions
|
|
@ -101,4 +101,6 @@ void foo3()
|
|||
resize2[5] = 4.0; // ERROR
|
||||
}
|
||||
|
||||
int[] i = int[](); // ERROR, need constructor arguments
|
||||
int[] i = int[](); // ERROR, need constructor arguments
|
||||
float emptyA[];
|
||||
float b = vec4(emptyA); // ERROR, array can't be a constructor argument
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue