Issue 32: Guard against constructors consuming unsized arrays.

This commit is contained in:
John Kessenich
2015-07-22 11:44:59 -06:00
parent f498400945
commit 12a383379c
3 changed files with 41 additions and 13 deletions

View File

@@ -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