aboutsummaryrefslogtreecommitdiff
path: root/gcc/print-rtl-function.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2021-03-23 10:23:42 +0100
committerJakub Jelinek <jakub@redhat.com>2021-04-22 16:51:09 +0200
commit6132dc70413163b96955a3ebca33c849eb2eb88e (patch)
tree2e1a1a2a6870d54146f8564e1cdcf8523556e6f7 /gcc/print-rtl-function.c
parentdbdd062665903c88b89525573d7dfde233562e8c (diff)
downloadgcc-6132dc70413163b96955a3ebca33c849eb2eb88e.zip
gcc-6132dc70413163b96955a3ebca33c849eb2eb88e.tar.gz
gcc-6132dc70413163b96955a3ebca33c849eb2eb88e.tar.bz2
c++: Diagnose references to void in structured bindings [PR99650]
We ICE on the following testcase, because std::tuple_element<...,...>::type is void and for structured bindings we therefore need to create void & or void && which is invalid. We created such REFERENCE_TYPE and later ICEd in the middle-end. The following patch fixes it by diagnosing that. 2021-03-23 Jakub Jelinek <jakub@redhat.com> PR c++/99650 * decl.c (cp_finish_decomp): Diagnose void initializers when using tuple_element and get. * g++.dg/cpp1z/decomp55.C: New test. (cherry picked from commit d5e379e3fe19362442b5d0ac608fb8ddf67fecd3)
Diffstat (limited to 'gcc/print-rtl-function.c')
0 files changed, 0 insertions, 0 deletions