"Wrong C++ default declaration in a method" build failure(s)
clang 6.0
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);
};
Package | Version | Supposed error message | Full log |
Bug report |
clamfs | 1.0.1-3 | string.h:734:35: error: friend declaration specifying a default argument must be a definition
| Log |
|
ddd | 1:3.3.12-5.1 | strclass.h:813:19: error: friend declaration specifying a default argument must be a definition
| Log |
755226
|
libcommoncpp2 | 1.8.1-6.1 | ../inc/cc++/string.h:734:35: error: friend declaration specifying a default argument must be a definition
| Log |
756438
|
3 errors