This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/80390] std::pair of aligned type gives bogus warning


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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |redi at gcc dot gnu.org

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Created attachment 41235
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41235&action=edit
avoid over-aligned new in is_constructible

Daniel, does this seem like a reasonable simplification of
__is_direct_constructible? The idea is to declare an operator new for internal
use in unevaluated contexts, and then use that for the new-expression that
tests direct-constructibility. We can also combine it with the delete check,
because PR 51222 is fixed.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]