I have compiled following program in GCC using C++14.
C++14
#include using namespace std; auto func(int i); int main() { auto
Clang has a much better error message for that one:
main.cpp:8:16: error: function 'func' with deduced return type cannot be used before it is defined auto ret = func(5); ^
I guess that's self-explanatory.