Commit 52d4ed1d by Patrick Palka

c++: Add testcase for PR c++/93207

gcc/testsuite/ChangeLog:

	PR c++/93207
	* g++.dg/concepts/variadic5.C: New test.
parent 58a29af8
2020-04-14 Patrick Palka <ppalka@redhat.com>
PR c++/93207
* g++.dg/concepts/variadic5.C: New test.
PR c++/85278
* g++.dg/concepts/diagnostic9.C: New test.
......
// PR c++/93207
// { dg-do compile { target concepts } }
template <typename... Args>
concept C = true;
struct S
{
template <typename... Args>
void f()
requires C<Args...>;
};
template <typename... Args>
void S::f()
requires C<Args...>
{
}
void foo()
{
S s;
s.f<>();
s.f<int>();
s.f<int, char>();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment