PR c/22308
* c-decl.c (finish_struct): Also copy C_TYPE_FIELDS_READONLY,
C_TYPE_FIELDS_VOLATILE and C_TYPE_VARIABLE_SIZE to type variants.
testsuite:
* gcc.dg/pr22308-1.c: New test.
From-SVN: r101636
+2005-07-05 Joseph S. Myers <joseph@codesourcery.com>
+
+ PR c/22308
+ * c-decl.c (finish_struct): Also copy C_TYPE_FIELDS_READONLY,
+ C_TYPE_FIELDS_VOLATILE and C_TYPE_VARIABLE_SIZE to type variants.
+
2005-06-14 Eric Botcazou <ebotcazou@libertysurf.fr>
PR target/20301
TYPE_LANG_SPECIFIC (x) = TYPE_LANG_SPECIFIC (t);
TYPE_ALIGN (x) = TYPE_ALIGN (t);
TYPE_USER_ALIGN (x) = TYPE_USER_ALIGN (t);
+ C_TYPE_FIELDS_READONLY (x) = C_TYPE_FIELDS_READONLY (t);
+ C_TYPE_FIELDS_VOLATILE (x) = C_TYPE_FIELDS_VOLATILE (t);
+ C_TYPE_VARIABLE_SIZE (x) = C_TYPE_VARIABLE_SIZE (t);
}
/* If this was supposed to be a transparent union, but we can't
+2005-07-05 Joseph S. Myers <joseph@codesourcery.com>
+
+ PR c/22308
+ * gcc.dg/pr22308-1.c: New test.
+
2005-06-13 Nathan Sidwell <nathan@codesourcery.com>
PR c++/20789
void
bar (void)
{
- t = s; /* { dg-error "error: assignment of read-only variable 't'" } */
+ t = s; /* { dg-error "error: assignment of read-only variable `t'" } */
}