re PR c++/83958 (ICE: Segmentation fault (in find_decomp_class_base))
authorJakub Jelinek <jakub@redhat.com>
Tue, 23 Jan 2018 13:52:23 +0000 (14:52 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 23 Jan 2018 13:52:23 +0000 (14:52 +0100)
commit941ae8b48eba8d5b6ff696f9bdc6c6cfff3247d0
tree674742c8ae0d0392946a1255a04c3d022e9b59d4
parenta53d4f2004efef705435ea3e6bacfcca002d6c64
re PR c++/83958 (ICE: Segmentation fault (in find_decomp_class_base))

PR c++/83958
* decl.c (cp_finish_decomp): Diagnose if reference structure binding
refers to incomplete type.

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

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