[Bug c++/95328] structured binding of template type inside template function is reported as "incomplete class type"

2020-05-26 Thread stefaan.deroeck at gmail dot com
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();

[Bug c++/95328] New: structured binding of template type inside template function is reported as "incomplete class type"

2020-05-26 Thread stefaan.deroeck at gmail dot com
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

[Bug c++/77935] New: uninstantiated template constructor

2016-10-11 Thread stefaan.deroeck at gmail dot com
++ 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

[Bug c++/71546] New: lambda capture fails with "was not declared in this scope"

2016-06-15 Thread stefaan.deroeck at gmail dot com
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