diff options
author | Jakub Jelinek <jakub@redhat.com> | 2017-12-15 22:40:45 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2017-12-15 22:40:45 +0100 |
commit | 38f4bea834ef4c25cd89c824f15ee8d6b30a3760 (patch) | |
tree | 4b137515b1818687477804ac20f81ccca104b582 /gcc/tree-inline.c | |
parent | 70356f771a65b378362b08d5fdb926fbb88e4aa7 (diff) | |
download | gcc-38f4bea834ef4c25cd89c824f15ee8d6b30a3760.zip gcc-38f4bea834ef4c25cd89c824f15ee8d6b30a3760.tar.gz gcc-38f4bea834ef4c25cd89c824f15ee8d6b30a3760.tar.bz2 |
re PR c++/83205 (ICE on structured binding with ill-formed negative std::tuple_size<T>::value)
PR c++/83205
* decl.c (cp_finish_decomp): Handle the case when tsize is not
error_mark_node, but doesn't fit into uhwi. Split up count != eltscnt
and !tree_fits_uhwi_p (tsize) error_at calls into error_n and inform_n
to handle plural forms properly.
* g++.dg/cpp1z/decomp3.C: Adjust for structured binding count
mismatch diagnostics split into error and warning with plural
forms.
* g++.dg/cpp1z/decomp10.C: Likewise.
* g++.dg/cpp1z/decomp32.C: New test.
From-SVN: r255706
Diffstat (limited to 'gcc/tree-inline.c')
0 files changed, 0 insertions, 0 deletions