On 05/18/2016 07:13 PM, Paolo Carlini wrote:
+ error ("cannot declare variable %q+D with function type", decl);
I think the error message would be more helpful if it mentioned decltype(auto), maybe
"initializer for %<decltype(auto) %D%> has function type, did you forget the %<()%>?", DECL_NAME (decl)
(or some other way to print the variable type as declared rather than as deduced).
Jason