[PATCH] D111283: [clang] template / auto deduction deduces common sugar
Matheus Izvekov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 13 08:58:57 PDT 2022
mizvekov added a comment.
In D111283#3786610 <https://reviews.llvm.org/D111283#3786610>, @vhscampos wrote:
> For reference, another small reproducer of the crash, but with a different stack trace than the first example posted here:
>
> // Must compile with -std=c++03 to crash
> #include <algorithm>
>
> int main(int, char**)
> {
> int i[3] = {1, 2, 3};
> int j[3] = {4, 5, 6};
> std::swap(i, j);
>
> return 0;
> }
>
> Compile with -std=c++03 to reproduce the assertion failure.
> We found it by running the libcxx tests.
Thanks. Is this a different crash, or is It the same unreachable firing as the one @alexfh reported?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D111283/new/
https://reviews.llvm.org/D111283
More information about the cfe-commits
mailing list