[llvm-bugs] [Bug 47509] New: evaluation of constraints for std::ranges::views::drop() fails unnecessarily

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Sep 13 07:35:14 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=47509

            Bug ID: 47509
           Summary: evaluation of constraints for
                    std::ranges::views::drop() fails unnecessarily
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++2a
          Assignee: unassignedclangbugs at nondot.org
          Reporter: avi at cloudius-systems.com
                CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
                    llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk

The test program

==== begin test program ====
#include <vector>
#include <ranges>

void
f(std::vector<int> vec) {
    for (auto& e : vec | std::ranges::views::drop(1)) {
    }
}
==== end test program ====


Does not compile on clang, either with libc++ or libstdc++, failing on some
enormously complicated constraints. gcc accepts it.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200913/111472e8/attachment-0001.html>


More information about the llvm-bugs mailing list