public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/100940] New: views::take and views::drop should not define _S_has_simple_extra_args
@ 2021-06-07  4:39 hewillk at gmail dot com
  2021-06-07  9:39 ` [Bug libstdc++/100940] " hewillk at gmail dot com
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: hewillk at gmail dot com @ 2021-06-07  4:39 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 100940
           Summary: views::take and views::drop should not define
                    _S_has_simple_extra_args
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

For view::take and views::drop, we need to perfectly forward its incoming arg
in some uncommon situations:

#include <ranges>

struct Five {
  operator int() && { return 5; }
} five;

extern int x[10];
auto r = x | std::views::take(five);

https://godbolt.org/z/MEsssWGEh

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2021-06-18  3:07 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-07  4:39 [Bug libstdc++/100940] New: views::take and views::drop should not define _S_has_simple_extra_args hewillk at gmail dot com
2021-06-07  9:39 ` [Bug libstdc++/100940] " hewillk at gmail dot com
2021-06-07  9:53 ` hewillk at gmail dot com
2021-06-07 16:32 ` ppalka at gcc dot gnu.org
2021-06-08 12:53 ` rs2740 at gmail dot com
2021-06-08 19:03 ` ppalka at gcc dot gnu.org
2021-06-08 19:18 ` ppalka at gcc dot gnu.org
2021-06-14 17:02 ` ppalka at gcc dot gnu.org
2021-06-15  0:54 ` rs2740 at gmail dot com
2021-06-15 19:03 ` ppalka at gcc dot gnu.org
2021-06-17 13:46 ` cvs-commit at gcc dot gnu.org
2021-06-17 13:46 ` cvs-commit at gcc dot gnu.org
2021-06-18  3:05 ` cvs-commit at gcc dot gnu.org
2021-06-18  3:05 ` cvs-commit at gcc dot gnu.org
2021-06-18  3:07 ` ppalka at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).