Commit fbf3e66f by Marek Polacek Committed by Marek Polacek

PR c++/81486 - CTAD failing with ().

	* g++.dg/cpp1z/class-deduction60.C: New test.
	* g++.dg/cpp1z/class-deduction61.C: New test.

From-SVN: r267535
parent 29bb9224
......@@ -6,6 +6,10 @@
PR c++/88631 - CTAD failing for value-initialization.
* g++.dg/cpp1z/class-deduction59.C: New test.
PR c++/81486 - CTAD failing with ().
* g++.dg/cpp1z/class-deduction60.C: New test.
* g++.dg/cpp1z/class-deduction61.C: New test.
2019-01-02 Martin Sebor <msebor@redhat.com>
Jeff Law <law@redhat.com>
......
// PR c++/81486
// { dg-do compile { target c++17 } }
template <class T>
struct C {
C(T);
};
template <>
struct C<void> { };
C() -> C<void>;
int
main()
{
auto a = C{};
auto b = C();
}
// PR c++/81486
// { dg-do compile { target c++17 } }
template <typename... Ts>
struct foo
{
template <typename... Us>
foo(Us...) { }
};
int
main ()
{
auto f = foo();
}
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