https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94985

--- Comment #2 from Joey Liu <joeyjyliu at gmail dot com> ---
Just fyi, the patch attached in this ticket is slightly different than the
patch in the mailing list (I limit it to flexible array only). It can handle
the existing test cases (no regressions). However I do think we can do better
than that since it still can't deduce the correct refsize for my test case. For
now tree::component_ref_size just returns NULL_TREE as it can't really
distinguish the regular a[1] and the flexible array a[1].

Reply via email to