[qfcc] Treat invalid initialization as just an error

I'm not sure why I treated it as an internal error.
This commit is contained in:
Bill Currie 2024-03-07 22:29:31 +09:00
parent 2471147488
commit f390089e66

View file

@ -232,7 +232,8 @@ build_element_chain (element_chain_t *element_chain, const type_t *type,
} else if (is_array (type)) {
state.type = dereference_type (type);
} else {
internal_error (eles, "invalid initialization");
error (eles, "invalid initialization");
return;
}
while (ele) {
if (ele->designator) {