https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83217
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Dec 15 19:41:45 2017 New Revision: 255702 URL: https://gcc.gnu.org/viewcvs?rev=255702&root=gcc&view=rev Log: 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. Added: trunk/gcc/testsuite/g++.dg/cpp1z/decomp33.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/decl.c trunk/gcc/testsuite/ChangeLog