Re: [PR c++/84647] undeclared fn called in auto default arg in ptr decl

2018-03-20 Thread Jason Merrill
On Sat, Mar 10, 2018 at 6:57 AM, Alexandre Oliva wrote: > We ICEd when attempting to convert a default arg for an auto parm, the > default arg amounting to a call to an undeclared function, in a > declaration of a pointer to function variable. This seems to have been fixed by my patch for 84798,

[PR c++/84647] undeclared fn called in auto default arg in ptr decl

2018-03-10 Thread Alexandre Oliva
We ICEd when attempting to convert a default arg for an auto parm, the default arg amounting to a call to an undeclared function, in a declaration of a pointer to function variable. It's all wrong, but because of the bogus implicit template, we accept the typeless expression at first. Later on, a