[Bug middle-end/97189] [11 Regression] ICE in attr_access::array_as_string at gcc/attribs.c:2276 since r11-3303-g6450f07388f9fe57
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Sep 30 19:04:41 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97189
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Sebor <msebor@gcc.gnu.org>:
https://gcc.gnu.org/g:7dbc7ad524a540e34ce25d120d0968f36c571bbb
commit r11-3571-g7dbc7ad524a540e34ce25d120d0968f36c571bbb
Author: Martin Sebor <msebor@redhat.com>
Date: Wed Sep 30 12:58:09 2020 -0600
Avoid assuming a VLA access specification string contains a closing bracket
(PR middle-end/97189).
Resolves:
PR middle-end/97189 - ICE on redeclaration of a function with VLA argument
and attribute access
gcc/ChangeLog:
PR middle-end/97189
* attribs.c (attr_access::array_as_string): Avoid assuming a VLA
access specification string contains a closing bracket.
gcc/c-family/ChangeLog:
PR middle-end/97189
* c-attribs.c (append_access_attr): Use the function declaration
location for a warning about an attribute access argument.
gcc/testsuite/ChangeLog:
PR middle-end/97189
* gcc.dg/attr-access-2.c: Adjust caret location.
* gcc.dg/Wvla-parameter-6.c: New test.
* gcc.dg/Wvla-parameter-7.c: New test.
More information about the Gcc-bugs
mailing list