PR c/97413 - bogus error on function declaration with many VLA arguments
authorMartin Sebor <msebor@redhat.com>
Wed, 14 Oct 2020 21:18:19 +0000 (15:18 -0600)
committerMartin Sebor <msebor@redhat.com>
Wed, 14 Oct 2020 21:18:19 +0000 (15:18 -0600)
commit34efa5c2a84a8c7c7beb855dec24a321eebcbd6b
treeb89ec4413e427a639d87da436bb0efa97626a70d
parent30d06b7d30792bc621202af2099c21fc24157856
PR c/97413 - bogus error on function declaration with many VLA arguments

gcc/ChangeLog:

PR c/97413
* attribs.c (init_attr_rdwr_indices): Unwrap extra list layer.

gcc/c-family/ChangeLog:

PR c/97413
* c-attribs.c (build_attr_access_from_parms): Wrap chain of VLA
bounds in an extra list.

gcc/testsuite/ChangeLog:

PR c/97413
* gcc.dg/Wvla-parameter-8.c: New test.
gcc/attribs.c
gcc/c-family/c-attribs.c
gcc/testsuite/gcc.dg/Wvla-parameter-8.c [new file with mode: 0644]