aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vectorizer.h
diff options
context:
space:
mode:
authorgnaggnoyil <gnaggnoyil@gmail.com>2023-08-12 16:16:52 +0800
committerJason Merrill <jason@redhat.com>2023-08-14 13:34:42 -0400
commit1a43af04dd62b80f45700f94ed241347263ed773 (patch)
tree9fadb25f3c3c69f55990a3d9802b3c6a6a2984a4 /gcc/tree-vectorizer.h
parentcc56607f21f77d4e9c8146cd1b0400fddea589c6 (diff)
downloadgcc-1a43af04dd62b80f45700f94ed241347263ed773.zip
gcc-1a43af04dd62b80f45700f94ed241347263ed773.tar.gz
gcc-1a43af04dd62b80f45700f94ed241347263ed773.tar.bz2
c++: follow DR 2386 and update implementation of get_tuple_size [PR110216]
DR 2386 updated the tuple_size requirements for structured binding and it now requires tuple_size to be considered only if std::tuple_size<TYPE> names a complete class type with member value. GCC before this patch does not follow the updated requrements, and this patch is intended to implement it. (jason) Accepting pseudonym sign-off because a change this small is not legally significant for copyright. DR 2386 PR c++/110216 gcc/cp/ChangeLog: * decl.cc (get_tuple_size): Update implementation for DR 2386. gcc/testsuite/ChangeLog: * g++.dg/cpp1z/decomp10.C: Update expected error for DR 2386. * g++.dg/cpp1z/pr110216.C: New test. Signed-off-by: gnaggnoyil <gnaggnoyil@gmail.com> Reviewed-by: Jason Merrill <jason@redhat.com>
Diffstat (limited to 'gcc/tree-vectorizer.h')
0 files changed, 0 insertions, 0 deletions