aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/go.test/test/fixedbugs/bug343.go
diff options
context:
space:
mode:
authorNathaniel Shead <nathanieloshead@gmail.com>2025-04-26 00:10:34 +1000
committerNathaniel Shead <nathanieloshead@gmail.com>2025-04-27 22:55:16 +1000
commit1c5cf7cc82d3a2afa5d4fb90049456be408c2a7a (patch)
tree4c6ed1a0efd9238658fd7e1335ed753ec511e938 /gcc/testsuite/go.test/test/fixedbugs/bug343.go
parentf962f594e9006651379dafc9ef039be9654e6291 (diff)
downloadgcc-master.zip
gcc-master.tar.gz
gcc-master.tar.bz2
c++/modules: Ensure DECL_FRIEND_CONTEXT is streamed [PR119939]HEADtrunkmaster
An instantiated friend function relies on DECL_FRIEND_CONTEXT being set to be able to recover the template arguments of the class that instantiated it, despite not being a template itself. This patch ensures that this data is streamed even when DECL_CLASS_SCOPE_P is not true. PR c++/119939 gcc/cp/ChangeLog: * module.cc (trees_out::lang_decl_vals): Also stream lang->u.fn.context when DECL_UNIQUE_FRIEND_P. (trees_in::lang_decl_vals): Likewise. gcc/testsuite/ChangeLog: * g++.dg/modules/concept-11_a.H: New test. * g++.dg/modules/concept-11_b.C: New test. Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
Diffstat (limited to 'gcc/testsuite/go.test/test/fixedbugs/bug343.go')
0 files changed, 0 insertions, 0 deletions