exit with error when reference to struct or union as a value is found