"Wrong C++ default declaration in a method" build failure(s) — clang 9.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 detected for version 9.0.1