"Wrong C++ default declaration in a method" build failure(s)
clang 8.0.1
The default argument must be set in the definition or the definition done in the method declaration.
class string
{
friend string foo(int bar = 0);
};
No error detect for version 8.0.1
0 errors