https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69114

            Bug ID: 69114
           Summary: A couple allocator-related helpers should use
                    __addressof
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rs2740 at gmail dot com
  Target Milestone: ---

__use_alloc in <bits/uses_allocator.h> and __outermost in <scoped_allocator>
take the address of an allocator with &. They should use __addressof instead.

(__outermost doesn't seem to actually require the actual address at all; the
result is only used for disambiguating overload resolution.)

Reply via email to