[Bug c++/83205] ICE on structured binding with ill-formed negative std::tuple_size::value
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83205 Jakub Jelinek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED --- Comment #5 from Jakub Jelinek --- Fixed for 7.3+.
[Bug c++/83205] ICE on structured binding with ill-formed negative std::tuple_size::value
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83205 --- Comment #4 from Jakub Jelinek --- Author: jakub Date: Sat Dec 16 00:41:10 2017 New Revision: 255736 URL: https://gcc.gnu.org/viewcvs?rev=255736&root=gcc&view=rev Log: Backported from mainline 2017-12-15 Jakub Jelinek 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. Added: branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1z/decomp32.C Modified: branches/gcc-7-branch/gcc/cp/ChangeLog branches/gcc-7-branch/gcc/cp/decl.c branches/gcc-7-branch/gcc/testsuite/ChangeLog branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1z/decomp10.C branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1z/decomp3.C
[Bug c++/83205] ICE on structured binding with ill-formed negative std::tuple_size::value
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83205 --- Comment #3 from Jakub Jelinek --- Fixed on the trunk so far.
[Bug c++/83205] ICE on structured binding with ill-formed negative std::tuple_size::value
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83205 --- Comment #2 from Jakub Jelinek --- Author: jakub Date: Fri Dec 15 21:40:45 2017 New Revision: 255706 URL: https://gcc.gnu.org/viewcvs?rev=255706&root=gcc&view=rev Log: 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. Added: trunk/gcc/testsuite/g++.dg/cpp1z/decomp32.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/decl.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/cpp1z/decomp10.C trunk/gcc/testsuite/g++.dg/cpp1z/decomp3.C
[Bug c++/83205] ICE on structured binding with ill-formed negative std::tuple_size::value
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83205 --- Comment #1 from Jakub Jelinek --- Created attachment 42744 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42744&action=edit gcc8-pr83205.patch Untested fix.
[Bug c++/83205] ICE on structured binding with ill-formed negative std::tuple_size::value
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83205 Jakub Jelinek changed: What|Removed |Added Status|NEW |ASSIGNED CC||jakub at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org
[Bug c++/83205] ICE on structured binding with ill-formed negative std::tuple_size::value
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83205 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed||2017-11-29 Ever confirmed|0 |1 Known to fail||7.2.0, 8.0