You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the following C++ source code, when the loop variable i is either an lvalue or rvalue reference, Clang will crash due to a failed assertion in VarDecl::checkInitIsICE().
// tuple-for.cpp
#include<iostream>
#include<tuple>intmain() {
auto t = std::make_tuple(0, 0.1, "meep");
for... (auto i : t) // This is fine.
std::cout << i << '\n';
for... (auto &i : t) // Crash!
std::cout << i << '\n';
for... (auto &&i : t) // Crash!
std::cout << i << '\n';
return0;
}
The text was updated successfully, but these errors were encountered:
In the following C++ source code, when the loop variable
i
is either an lvalue or rvalue reference, Clang will crash due to a failed assertion inVarDecl::checkInitIsICE()
.The text was updated successfully, but these errors were encountered: