https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124510
Bug ID: 124510
Summary: mangling of ‘decltype (j)... j’ as ‘___’ conflicts
with a previous mangle
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: gcc-bugs at deta dot lv
Target Milestone: ---
Created attachment 63935
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=63935&action=edit
test.cpp - a reduced testcase
Hello!
I have a compilation error for structured binding pack with `-flto` but no
error without it:
-----------------------------------------------------
g++ -Wfatal-errors -std=c++26 -flto -c test.cpp
test.cpp:7:22: error: mangling of ‘decltype (j)... j’ as
‘_ZZN1t1fIJiEEEDaDpT_QeqsZfL0p_Li1EE1j’ conflicts with a previous mangle
7 | static auto [... j] = std::array<size_t, sizeof...(i)> {};
| ^
compilation terminated due to -Wfatal-errors.
-----------------------------------------------------
A reduced test case attached.
BR,
AZ