Skip to content
Snippets Groups Projects
Commit 9e44a993 authored by Jason Merrill's avatar Jason Merrill
Browse files

c++: variable tmpl partial specialization [PR108468]

Generally we expect TPARMS_PRIMARY_TEMPLATE to be set, but sometimes it
isn't for partial instantiations.  This ought to be improved, but it's
trivial to work around it in this case.

	PR c++/108468

gcc/cp/ChangeLog:

	* pt.cc (unify_pack_expansion): Check that TPARMS_PRIMARY_TEMPLATE
	is non-null.

gcc/testsuite/ChangeLog:

	* g++.dg/cpp1y/var-templ78.C: New test.
parent 2b204acc
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