https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92852
Bug ID: 92852 Summary: location references block not in block tree Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: marcpawl at gmail dot com Target Milestone: --- https://godbolt.org/z/Kh3xWR Add... #include <iostream> #include <tuple> #include <algorithm> void foo() { std::ostream& message_stream = std::cout; auto data = std::make_tuple(3,4.5,"cd"); auto format = [&message_stream](auto && x) { message_stream << x ;}; std::apply([&](auto const& ...x){(..., format(x));}, data); } x86-64 gcc (trunk) (Editor #1, Compiler #2) C++ x86-64 gcc (trunk) -O0 -std=c++17 1 <Compilation failed> x86-64 gcc (trunk) - 2085ms #2 with x86-64 gcc (trunk) <source>: In lambda function: <source>:12:2: error: location references block not in block tree 12 | } | ^ &cout std::basic_ostream<char>::operator<< (&cout, _1); during IPA pass: *free_lang_data <source>:12:2: internal compiler error: verify_gimple failed Please submit a full bug report, with preprocessed source if appropriate. See <https://gcc.gnu.org/bugs/> for instructions. Compiler returned: 1