aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface/decl.cc
diff options
context:
space:
mode:
authorMartin Uecker <uecker@tugraz.at>2025-03-01 21:32:21 +0100
committerMartin Uecker <uecker@gcc.gnu.org>2025-03-19 08:53:12 +0100
commit1636e85270d918a84d57bb521c22c42abf42a47c (patch)
tree300f437b7e14fd0acaee6738f185c5c19f42090b /gcc/ada/gcc-interface/decl.cc
parentd9e834958e82219f836577da4ef8176aca2c7c9f (diff)
downloadgcc-1636e85270d918a84d57bb521c22c42abf42a47c.zip
gcc-1636e85270d918a84d57bb521c22c42abf42a47c.tar.gz
gcc-1636e85270d918a84d57bb521c22c42abf42a47c.tar.bz2
c: Fix bug in typedef redefinitions of tagged types [PR118765]
When we redefine a tagged type we incorrectly update TYPE_STUB_DECL of the previously defined type instead of the new one. Because TYPE_STUB_DECL is used when determining whether two such types are the same, this can cause valid typedef redefinitions to be rejected later. This is only a partial fix for PR118765. PR c/118765 gcc/c/ChangeLog: * c-decl.cc (finish_struct,finish_enum): Swap direction when copying TYPE_STRUB_DECL in redefinitions. gcc/testsuite/ChangeLog: * gcc.dg/pr118765.c: New test.
Diffstat (limited to 'gcc/ada/gcc-interface/decl.cc')
0 files changed, 0 insertions, 0 deletions