https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95328
--- Comment #1 from Stefaan De Roeck ---
During further development, I nevertheless did find a shorter snippet to
reproduce the issue:
template
struct Data
{
int a, b;
};
template
void func()
{
auto [a, b] = Data();
}
int main() { func();
NCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: stefaan.deroeck at gmail dot com
Target Milestone: ---
A structured binding assignment of a template type inside a template func
++
Assignee: unassigned at gcc dot gnu.org
Reporter: stefaan.deroeck at gmail dot com
Target Milestone: ---
The following code results in:
/tmp/ccOkdgv6.o: In function `main':
u.cpp:(.text+0x26): undefined reference to `A::A()'
collect2: error: ld returned 1 exit status
-- code
ty: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: stefaan.deroeck at gmail dot com
Target Milestone: ---
The following code fails to compile:
#include
int main()
{
int x1;
[e = std::make_shared (), x1]() {};
}
saying