]> git.ipfire.org Git - thirdparty/gcc.git/commit
c: Set attributes for fields when forming a composite type [PR117806]
authorMartin Uecker <uecker@tugraz.at>
Fri, 29 Nov 2024 16:04:36 +0000 (17:04 +0100)
committerMartin Uecker <uecker@gcc.gnu.org>
Sat, 30 Nov 2024 07:40:24 +0000 (08:40 +0100)
commit1539bcd19c5928d8359722c532dfcc7a26a16dda
treed97bf53ffeb8b67084aa2ce3642c36c4d39891e4
parent1701efd5c848f56cf9a469c5bf42dd0bca675e0a
c: Set attributes for fields when forming a composite type [PR117806]

We need to call decl_attributes when creating the fields for a composite
type.

PR c/117806

gcc/c/ChangeLog:
* c-typeck.cc (composite_type_internal): Call decl_attributes.

gcc/testsuite/ChangeLog:
* gcc.dg/pr117806.c: New test.
gcc/c/c-typeck.cc
gcc/testsuite/gcc.dg/pr117806.c [new file with mode: 0644]