]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c/22308 (Failure to diagnose violation of constraint 6.516p2)
authorJoseph Myers <joseph@codesourcery.com>
Tue, 5 Jul 2005 17:34:29 +0000 (18:34 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Tue, 5 Jul 2005 17:34:29 +0000 (18:34 +0100)
commit692a7aa3a5aea69f4f771b8a56f6aac9866fe383
tree0336b82d2cbcc343230684b1de3dc6ab352f23af
parent2d95cce3c9ddcd26b93fe95f539c3380e2213ad5
re PR c/22308 (Failure to diagnose violation of constraint 6.516p2)

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: r101629
gcc/ChangeLog
gcc/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr22308-1.c [new file with mode: 0644]