[Bug c++/68948] G++ voluntarily removes a function call with terrible side effects

basil at list dot ru gcc-bugzilla@gcc.gnu.org
Thu Dec 17 13:22:00 GMT 2015


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.


More information about the Gcc-bugs mailing list