Use of ‘auto func(int)’ before deduction of ‘auto’ in C++14
This is [dcl.spec.auto/11]: If the type of an entity with an undeduced placeholder type is needed to determine the type of an expression, the program is ill-formed. Once a non-discarded return statement has been seen in a function, however, the return type deduced from that statement can be used in the rest of the function, … Read more