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 libstdc++/80064] [7 Regression] _Iter_cmp_iter instantiates bogus type


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |ASSIGNED
   Last reconfirmed|                            |2017-03-16
         Resolution|INVALID                     |---
     Ever confirmed|0                           |1

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Re-opening because we can make it work fairly easily, by using the decayed type
instead of the original Compare type, i.e.

  struct wrapper {
    __decltype(comp) cmp;
  } wrapped_comp = { comp };

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