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

            Bug ID: 46746
           Summary: Clang can't compile libstdc++ ranges
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++2a
          Assignee: unassignedclangb...@nondot.org
          Reporter: boris.stale...@gmail.com
                CC: blitzrak...@gmail.com, erik.pilking...@gmail.com,
                    llvm-bugs@lists.llvm.org, richard-l...@metafoo.co.uk

Created attachment 23729
  --> https://bugs.llvm.org/attachment.cgi?id=23729&action=edit
Preprocessed example that reproduces the error.

GCC 10.1.0 came with libstdc++ that has `<ranges>` implemented. Also clang 10
supports concepts. I wanted to use clang to compile a simple snippet that
relies on ranges, but clang encountered some errors that just don't happen with
gcc.


```
#include <ranges>

int main(void)
{
 char c[3] = {'a', 'b', 'v'};
 std::ranges::subrange sub(c);
}
```

The preprocessed file can be found here: https://godbolt.org/z/7hfbq5
I've also made an attachment with the same preprocessed file compressed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to