https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70766
Bug ID: 70766 Summary: stream iterators, shared_lock, and atomic<T> should all use addressof and not & Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: rs2740 at gmail dot com Target Milestone: --- 1) istream_iterator and ostream_iterator's constructors and istream_iterator's operator-> should use __addressof (this is LWG issue 2576). 2) shared_lock's constructors should use addressof (LWG issue 2577). unique_lock's constructors already do that. 3) The primary atomic<_Tp> template uses & in many places where it should be using addressof.