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:
parent
244dfb9511
commit
92664c058d
7
gcc/testsuite/g++.dg/template/partial-specialization9.C
Normal file
7
gcc/testsuite/g++.dg/template/partial-specialization9.C
Normal 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
|
Loading…
x
Reference in New Issue
Block a user