https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81197

            Bug ID: 81197
           Summary: ICE with structured binding and lifetime-extended
                    temporaries
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ensadc at mailnesia dot com
  Target Milestone: ---

https://wandbox.org/permlink/knUzVFqc8cUizjI4

----
#include <tuple>

const auto& [a] = std::make_tuple(1);

----
prog.cc:3:36: internal compiler error: in write_unqualified_name, at
cp/mangle.c:1318
 const auto& [a] = std::make_tuple(1);
                                    ^

----

Might relate to bug 81086, but this one ICEs on both 7.1 and 8.

Reply via email to