https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104970
--- Comment #10 from Martin Sebor <msebor at gcc dot gnu.org> --- The purpose of the internal_p flag documented in the attr_access class is more general than to tell a VLA-like argument from an ordinary array/pointer form ("Set for an attribute added internally rather than by an explicit declaration") so tying the two together would be fragile. I expect using internal_p directly as Siddhesh suggests will probably work now but I would recommend using the vla_bounds() member function instead in case things change in the future.