re PR c++/83217 (Compiler segfault: structured binding by reference to a templated...
authorJakub Jelinek <jakub@redhat.com>
Fri, 15 Dec 2017 19:41:45 +0000 (20:41 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 15 Dec 2017 19:41:45 +0000 (20:41 +0100)
commite3a661b45e8d9baf96bef773e214f4c41581bc22
tree109ff2c4cf011fe601b51b2963b60b4147cf9296
parent32151c3f1b8b394b16b3d396a781e65426dd8f45
re PR c++/83217 (Compiler segfault: structured binding by reference to a templated type via a pointer)

PR c++/83217
* decl.c (cp_finish_decomp): If decl's type is REFERENCE_TYPE,
call complete_type (TREE_TYPE (type)).

* g++.dg/cpp1z/decomp33.C: New test.

From-SVN: r255702
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1z/decomp33.C [new file with mode: 0644]