Skip to content
Snippets Groups Projects
Commit 5b9ecce8 authored by Nathaniel Shead's avatar Nathaniel Shead Committed by Nathan Sidwell
Browse files

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: default avatarNathaniel Shead <nathanieloshead@gmail.com>
Signed-off-by: default avatarNathan Sidwell <nathan@acm.org>
parent 353f146c
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment