https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97860
--- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> --- Actually, I missed that your patch just skips over the error node. That will leave the attribute spec out of sync with the argument (it contains a '$' for each VLA bound). Rather than continuing to the next bound I think we should bail. The alternative is to change the rest of the code (the attribute handler and the whole attribute access machinery) to skip these erroneous bounds.