https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97206

--- Comment #6 from Martin Sebor <msebor at gcc dot gnu.org> ---
Testing this fix:

diff --git a/gcc/attribs.c b/gcc/attribs.c
index abc75368e6c..262e4b8f7b9 100644
--- a/gcc/attribs.c
+++ b/gcc/attribs.c
@@ -2278,7 +2278,7 @@ attr_access::array_as_string (tree type) const
       else  if (minsize)
        index_type = build_index_type (size_int (minsize - 1));

-      artype = build_array_type (eltype, index_type);
+      artype = build_nonshared_array_type (eltype, index_type);

       if (static_p || vla_p)
        {

Reply via email to