]> git.ipfire.org Git - thirdparty/gcc.git/commit
c: Set attributes for fields when forming a composite type [PR117806]
authorMartin Uecker <uecker@tugraz.at>
Sat, 22 Mar 2025 16:35:58 +0000 (17:35 +0100)
committerMartin Uecker <uecker@gcc.gnu.org>
Sat, 22 Mar 2025 16:35:58 +0000 (17:35 +0100)
commita3989d8158705975ab72c9167469905cbe7d11cf
tree0c95727400b8432f9727c71c4109ef84d309f941
parent432f918f111498e0c3bfee5f9b2ddd8205370163
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.

(cherry picked from commit 1539bcd19c5928d8359722c532dfcc7a26a16dda)
gcc/c/c-typeck.cc
gcc/testsuite/gcc.dg/pr117806.c [new file with mode: 0644]