MagentaTreehouse
MagentaTreehouse
Further reduced: https://godbolt.org/z/jqeTKzqf4 ```C++ template struct int_sequence {}; int main() { [](int_sequence) { ( [](auto x = i) { using lambda_type = decltype([] {return decltype(x){};}); decltype(&lambda_type::operator()){}; }(0), ... ); }(int_sequence{});...
This goes back to Clang 14, probably related to the implementation of [P0388: Permit conversions to arrays of unknown bound](https://wg21.link/P0388R4) in the following commits: bb3f5f5d788dd9375ab260f77612fab4a707a1ac dcd74716f9d18444a17de852a760cc85bd16f825 444ec0957c58492ecce0569bb20b7d3ad59d37bb
Do I understand it correctly that [[over.match.ref]/1.1](https://eel.is/c++draft/over.match.ref#1.1) requires the conversion function to return an lvalue reference in this case (of initializing an lvalue reference)?
Requesting to reopen this issue as the fix was reverted and the error still reproduces in trunk.
Reduced: ```c++ struct tm {}; auto getCache = [&] { ::foo([=] { tms time; (void)time; }); }; ``` See Compiler Explorer: https://gcc.godbolt.org/z/ebre7G7q5
Reduced: ```c++ template struct make_indices_ : make_indices_ {}; make_indices_ is; ``` Basically `make_indices_` is infinitely deriving from its different specializations. See Compiler Explorer: https://godbolt.org/z/vzMrqrzK7
Reduced: ```c++ template void foo() { [](auto...) { decltype([](auto) {}(0))(); }(); } template void foo(); ``` Error: ``` :3:17: error: no matching function for call to object of type '(lambda...
Reduced: ```c++ template constexpr auto concat=[]{ if constexpr(sizeof...(b)==0) return 0; else return concat; }(); int main(){ (void)concat; } ``` Output: ``` clang++: /root/llvm-project/clang/lib/Sema/SemaTemplateInstantiate.cpp:4659: void clang::LocalInstantiationScope::InstantiatedLocal(const clang::Decl*, clang::Decl*): Assertion `!Current->LocalDecls.contains(D) &&...
Looks like a duplicate of #47375, which is considered a duplicate of #56652.
Assertion: ``` clang++: /root/llvm-project/clang/lib/CodeGen/CGExprScalar.cpp:2077: llvm::Value* {anonymous}::ScalarExprEmitter::VisitInitListExpr(clang::InitListExpr*): Assertion `Ignore == false && "init list ignored"' failed. ``` Stacktrace: ``` Stack dump: 0. Program arguments: /opt/compiler-explorer/clang-assertions-trunk/bin/clang++ -gdwarf-4 -g -o /app/output.s -mllvm --x86-asm-syntax=intel...