]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: Fix GC with TU_LOCAL_ENTITY [PR119564]
authorNathaniel Shead <nathanieloshead@gmail.com>
Fri, 4 Apr 2025 01:24:10 +0000 (12:24 +1100)
committerNathaniel Shead <nathanieloshead@gmail.com>
Fri, 4 Apr 2025 23:30:33 +0000 (10:30 +1100)
commit337b9ff4854c6a7fa47860ce0acad82ffb4d39be
tree0445851702df75ccf5c1efaab8a995442b369e60
parentb8e8829cfb73d7aa009d387ab09bdbab221930d7
c++: Fix GC with TU_LOCAL_ENTITY [PR119564]

When adding TU_LOCAL_ENTITY in r15-6379 I neglected to add it to
cp_tree_node_structure, so garbage collection was crashing on it.

PR c++/119564

gcc/cp/ChangeLog:

* decl.cc (cp_tree_node_structure): Add TU_LOCAL_ENTITY; fix
formatting.

gcc/testsuite/ChangeLog:

* g++.dg/modules/gc-3_a.C: New test.
* g++.dg/modules/gc-3_b.C: New test.

Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
Reviewed-by: Jason Merrill <jason@redhat.com>
gcc/cp/decl.cc
gcc/testsuite/g++.dg/modules/gc-3_a.C [new file with mode: 0644]
gcc/testsuite/g++.dg/modules/gc-3_b.C [new file with mode: 0644]