"Wrong C++ default declaration in a method" build failure(s) — clang 3.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);
};
PackageVersionSupposed error messageFull log Bug report
ants 1.9.2+svn680.dfsg-4itkBSplineControlPointImageFilter.txx:890:16: error: default arguments cannot be added to an out-of-line definition of a member of a class template Log
bowtie 0.12.7-3./ebwt.h:3938:11: error: default arguments cannot be added to an out-of-line definition of a member of a class template Log
igstk 4.4.0-2igstkStateMachine.txx:486:52: error: default arguments cannot be added to an out-of-line definition of a member of a class template Log
sofa-framework 1.0~beta4-7../../../framework/sofa/core/objectmodel/Data.h:281:42: error: default arguments cannot be added to an out-of-line definition of a member of a class template Log

4 errors