]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: non-dep structured binding decltype again [PR117107]
authorJason Merrill <jason@redhat.com>
Tue, 22 Oct 2024 20:37:49 +0000 (16:37 -0400)
committerJason Merrill <jason@redhat.com>
Tue, 22 Oct 2024 21:56:23 +0000 (17:56 -0400)
commit71e13ea134b04562f8f2cdd9c4a55dbb0905f96a
treea0e869c15fabe7a84ba58ce7cc628ceea6ccaea6
parent5c6c1aba338d1e563e3da2c5e255f490f0865994
c++: non-dep structured binding decltype again [PR117107]

The patch for PR92687 handled the usual case of a decomp variable not being
in the table, but missed the case of there being nothing in the table yet.

PR c++/117107
PR c++/92687

gcc/cp/ChangeLog:

* decl.cc (lookup_decomp_type): Handle null table.

gcc/testsuite/ChangeLog:

* g++.dg/cpp2a/decomp10.C: New test.
gcc/cp/decl.cc
gcc/testsuite/g++.dg/cpp2a/decomp10.C [new file with mode: 0644]