https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68948
--- Comment #5 from Vasily Sukhanov <basil at list dot ru> --- There is an error in the line: this->delegate_.store()->RemoveLoginsByOriginAndTime( origin, base::Time::Time(), base::Time::Max(), base::Closure()); should be this->delegate_.store()->RemoveLoginsByOriginAndTime( origin, base::Time(), base::Time::Max(), base::Closure()); Then everything works. For some reason in the template context GCC doesn't produce an error. If I move it to a standalone function then I get a compilation error.