Re: C++ PATCH for c++/84720, ICE with rvalue ref template parameter

2018-03-16 Thread Jason Merrill
On Tue, Mar 13, 2018 at 2:54 PM, Jason Merrill wrote: > It's unclear to me that it is ever possible to instantiate a template > taking an rvalue ref parameter, but I guess we might as well handle it > properly. ...except that such parameters are actually ill-formed, so we should reject. commit de

C++ PATCH for c++/84720, ICE with rvalue ref template parameter

2018-03-13 Thread Jason Merrill
In this testcase, we were crashing because we decided that the int&& template parameter wasn't a valid argument for itself, which is wrong. It's unclear to me that it is ever possible to instantiate a template taking an rvalue ref parameter, but I guess we might as well handle it properly. Tested