]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: modules and deprecated namespaces
authorJason Merrill <jason@redhat.com>
Mon, 3 Nov 2025 14:51:38 +0000 (17:51 +0300)
committerJason Merrill <jason@redhat.com>
Mon, 3 Nov 2025 14:51:38 +0000 (17:51 +0300)
commitca554581288fc27559df8150c1a5a915b915bc2b
tree5164cdbb74950aebd0f184a5eb27a873d979913d
parent7a25badc5ddd95df53a3ca5156d9dd071f3f78c1
c++: modules and deprecated namespaces

20_util/rel_ops.cc was failing because the gcm didn't represent
[[deprecated]] on a namespace.  Are there any other attributes we're
missing?

gcc/cp/ChangeLog:

* module.cc (module_state::write_namespaces): Handle
TREE_DEPRECATED.
(module_state::read_namespaces): Likewise.

gcc/testsuite/ChangeLog:

* g++.dg/modules/namespace-15_a.C: New test.
* g++.dg/modules/namespace-15_b.C: New test.
gcc/cp/module.cc
gcc/testsuite/g++.dg/modules/namespace-15_a.C [new file with mode: 0644]
gcc/testsuite/g++.dg/modules/namespace-15_b.C [new file with mode: 0644]