This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/81197] New: ICE with structured binding and lifetime-extended temporaries


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]