Commit 39920b04 by Paolo Carlini Committed by Paolo Carlini

re PR c++/64931 (ICE on function with deduced return type and input is instantiated template class)

2017-10-16  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/64931
	* g++.dg/cpp1y/auto-fn43.C: New.

From-SVN: r253788
parent 525f700d
2017-10-16 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/64931
* g++.dg/cpp1y/auto-fn43.C: New.
2017-10-16 Wilco Dijkstra <wdijkstr@arm.com>
PR target/82442
......
// PR c++/64931
// { dg-do compile { target c++14 } }
template<typename T>
struct S {
T data[32];
};
auto
foo (S<int> & x)
{
return x;
}
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