Commit 64cc30c5 by Marek Polacek Committed by Marek Polacek

re PR c++/82231 (ICE when deducing non-type template parameter value whose type…

re PR c++/82231 (ICE when deducing non-type template parameter value whose type depends on a non-type `auto` template parameter from function arguments)

	PR c++/82231
	* g++.dg/cpp1z/nontype-auto14.C: New test.

From-SVN: r255839
parent 72de3b78
2017-12-19 Marek Polacek <polacek@redhat.com>
PR c++/82231
* g++.dg/cpp1z/nontype-auto14.C: New test.
2017-12-18 Jeff Law <law@redhat.com>
PR tree-optimization/83477
......
// PR c++/82231
// { dg-options -std=c++17 }
template<int>
struct x {};
template <auto I, decltype(I) X>
void f(x<X>) { }
int
main()
{
f<0>(x<1>{});
}
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