Files
ispc/tests_errors/decl-4.ispc
Matt Pharr d3e6879223 Improve error checking for unsized arrays.
Added support for resolving dimensions of multi-dimensional unsized arrays
from their initializer exprerssions (previously, only the first dimension
would be resolved.)

Added checks to make sure that no unsized array dimensions remain after
doing this (except for the first dimensision of array parameters to
functions.)
2011-11-21 10:41:23 -08:00

6 lines
137 B
Plaintext

// Illegal to declare an unsized array variable without providing an initializer expression to set its size
int func() {
int a[];
}