https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79950
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- The C++ front-end could be taught about std::vector::size() as a special case, but that would only help that special case, it wouldn't help for std::deque::size(), or boost::vector::size() or other types.