c++: Add testcase for already fixed PR [PR77435]

We correctly accept this testcase since r8-1437.

gcc/testsuite/ChangeLog:

	PR c++/77435
	* g++.dg/template/partial-specialization9.C: New test.
This commit is contained in:
Patrick Palka 2021-04-22 17:47:00 -04:00
parent 244dfb9511
commit 92664c058d

View File

@ -0,0 +1,7 @@
// PR c++/77435
template<int, class T, T> struct S;
template<class T, T A> struct S<0, T, A> {};
int i;
S<0, int*, &i> r; // OK
S<0, int&, i> s; // error: aggregate 'S<0, int&, i> s' has incomplete type