diff options
| author | Patrick Palka <ppalka@redhat.com> | 2026-01-26 22:00:16 -0500 |
|---|---|---|
| committer | Patrick Palka <ppalka@redhat.com> | 2026-01-26 22:00:16 -0500 |
| commit | 22f51c0f5e62a4e05bccbd0dfb23762ef2eeeff8 (patch) | |
| tree | 01fb040fb080702c3171825e59ceb9c4d1cee8a9 /libjava/gnu/java/rmi | |
| parent | 9cb5c879e722bb63d5ff5621cd77f402cb94a316 (diff) | |
| download | gcc-22f51c0f5e62a4e05bccbd0dfb23762ef2eeeff8.zip gcc-22f51c0f5e62a4e05bccbd0dfb23762ef2eeeff8.tar.gz gcc-22f51c0f5e62a4e05bccbd0dfb23762ef2eeeff8.tar.bz2 | |
Here since the expression within the decltype C<Ts...> is not instantiation
dependent (we know its type is bool, and don't care about its value)
finish_decltype_type instantiates it immediately via the usual tsubst_expr
with NULL_TREE args. During which however tsubst_pack_expansion isn't
prepared to handle such a substitution due to an overly strict assert.
This patch relaxes the assert accordingly.
PR c++/123676
gcc/cp/ChangeLog:
* pt.cc (tsubst_pack_expansion): Relax unsubsituted_packs
assert to allow !processing_template_decl when args is
NULL_TREE.
gcc/testsuite/ChangeLog:
* g++.dg/cpp2a/concepts-decltype5.C: New test.
Reviewed-by: Jason Merrill <jason@redhat.com>
Diffstat (limited to 'libjava/gnu/java/rmi')
0 files changed, 0 insertions, 0 deletions
