]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: Fix exported using decls of templates
authorNathaniel Shead <nathanieloshead@gmail.com>
Fri, 10 Nov 2023 00:05:09 +0000 (19:05 -0500)
committerNathan Sidwell <nathan@acm.org>
Tue, 14 Nov 2023 19:43:19 +0000 (14:43 -0500)
commit5b9ecce87e8f315e2681743d75401991cdfefa71
treeafbf1d9c7b2628bdc22dfe9a1b5338bd8dfed326
parent353f146cebbf224520de1bdfa8e43ceba868cf62
c++: Fix exported using decls of templates

We need to look at DECL_TEMPLATE_RESULT to get the module attachment.

PR c++/106849

gcc/cp/ChangeLog:

* name-lookup.cc (do_nonmember_using_decl): Handle
TEMPLATE_DECLs when checking module attachment.

gcc/testsuite/ChangeLog:

* g++.dg/modules/using-9.C: New test.

Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
Signed-off-by: Nathan Sidwell <nathan@acm.org>
gcc/cp/name-lookup.cc
gcc/testsuite/g++.dg/modules/using-9.C [new file with mode: 0644]