Skip to content
Snippets Groups Projects
Commit 5fd5c97a authored by Dodji Seketeli's avatar Dodji Seketeli Committed by Dodji Seketeli
Browse files

re PR c++/42697 (ice-on-legal-code: template class template function local objects)

Fix PR c++/42697

gcc/cp/ChangeLog:
	PR c++/42697
	*pt.c (tsubst_decl): Get the arguments of a specialization from
	the specialization template, not from the most general template.

gcc/testsuite/ChangeLog:
	PR c++/42697
	* g++.dg/template/crash94.C: New test.

From-SVN: r158068
parent 7c094c11
Loading
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