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 };