Re: [C++1y] [PATCH] Fix PR c++/58500

2013-09-23 Thread Adam Butcher
On 23.09.2013 19:02, Jason Merrill wrote: On 09/23/2013 02:08 AM, Adam Butcher wrote: Note that this doesn't mean that 'auto' parameters in a function ptr will be treated the same; I think we need a special case for this in the implicit template parameter introduction code (or refactor to gene

Re: [C++1y] [PATCH] Fix PR c++/58500

2013-09-23 Thread Jason Merrill
On 09/23/2013 02:08 AM, Adam Butcher wrote: Note that this doesn't mean that 'auto' parameters in a function ptr will be treated the same; I think we need a special case for this in the implicit template parameter introduction code (or refactor to generate template parm types on the fly). It is

[C++1y] [PATCH] Fix PR c++/58500

2013-09-23 Thread Adam Butcher
Hi, This fixes using 'auto' in the return type of a function pointer to introduce an implicit function template parameter. Note that this doesn't mean that 'auto' parameters in a function ptr will be treated the same; I think we need a special case for this in the implicit template parameter