https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118044
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |DUPLICATE
Status|UNCONFIRMED |RESOLVED
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Same issue as PR 118043.
`gnu::access(write_only, 2)` will change the VLA for argument into an non-VLA.
So you are getting a mismatch there because of it.
*** This bug has been marked as a duplicate of bug 118043 ***