[llvm-bugs] [Bug 46746] New: Clang can't compile libstdc++ ranges
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jul 16 05:11:35 PDT 2020
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: unassignedclangbugs at nondot.org
Reporter: boris.staletic at gmail.com
CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
llvm-bugs at lists.llvm.org, richard-llvm at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200716/ba184109/attachment.html>
More information about the llvm-bugs
mailing list