c++: add original testcase [PR67898]

The original testcase from this PR (fixed by r14-8291) seems rather
different from the others, so let's add it to the testsuite.

	PR c++/67898

gcc/testsuite/ChangeLog:

	* g++.dg/cpp0x/temp_default8.C: New test.
This commit is contained in:
Patrick Palka 2024-01-30 12:30:32 -05:00
parent 209fc1e5f6
commit 1a4c47e10e

View file

@ -0,0 +1,14 @@
// PR c++/67898
// { dg-do compile { target c++11 } }
void f(int);
void f(float);
template<class T, T F, T G, bool b = F == G> struct X { };
template<class T>
void test() {
X<void(T), f, f>();
}
template void test<int>();