aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorXiaoyang Liu <siujoeng.lau@gmail.com>2024-03-20 01:47:40 -0700
committerGitHub <noreply@github.com>2024-03-20 09:47:40 +0100
commitcf09b7dec463178fbdefc72dc262d209d865c1c9 (patch)
treea953dfa44e087cfd103e6a8d1c00afc89b4a06dd /clang/lib/CodeGen/CodeGenModule.cpp
parent272d1b44efdedb68c194970a610f0ca1b7b769c5 (diff)
downloadllvm-cf09b7dec463178fbdefc72dc262d209d865c1c9.zip
llvm-cf09b7dec463178fbdefc72dc262d209d865c1c9.tar.gz
llvm-cf09b7dec463178fbdefc72dc262d209d865c1c9.tar.bz2
[libc++][ranges] LWG3715: `view_interface::empty` is overconstrained (#85004)
## Abstract This pull request implements LWG3715: `view_interface::empty` is overconstrained. Here is an example similar to those described in the report, which compiles with `-stdlib=libstdc++` but failed to compile with `-stdlib=libc++`: ```cpp // https://godbolt.org/z/EWEoTzah3 std::istringstream input("1 2 3 4 5"); auto i = std::views::istream<int>(input); auto r = std::views::counted(i.begin(), 4) | std::views::take(2); assert(!r.empty()); ``` ## Reference - [Draft C++ Standard: [view.interface.general]](https://eel.is/c++draft/view.interface.general) - [LWG3715](https://wg21.link/LWG3715)
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions