re PR c++/85227 (ICE with structured binding of a forward declared variable)
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 9 Apr 2018 22:33:35 +0000 (22:33 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 9 Apr 2018 22:33:35 +0000 (22:33 +0000)
commit52912c916051945e8474966937bf79ae48fefabe
tree1aad9ac0cf64402868ad6c572fe12605cefba92a
parentf0caea4872076e02cad511db85a2437317c035c1
re PR c++/85227 (ICE with structured binding of a forward declared variable)

/cp
2018-04-09  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/85227
* decl.c (cp_finish_decomp): In a template, if the type is incomplete
issue a pedwarn and defer trying to do bindings.

/testsuite
2018-04-09  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/85227
* g++.dg/cpp1z/decomp44.C: New.
* g++.dg/cpp1z/decomp45.C: Likewise.

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