c++: Fix ICE with parameter pack of decltype(auto) [PR103497]
commitca912a39cccdd990ef705768faa7311ac210b3f3
authorNathaniel Shead <nathanieloshead@gmail.com>
Fri, 30 Jun 2023 07:05:24 +0000 (30 17:05 +1000)
committerJason Merrill <jason@redhat.com>
Thu, 27 Jul 2023 03:44:54 +0000 (26 23:44 -0400)
treec2da8c5f6512ef59161c3996c082ff4a070f60eb
parent9890d4e8bcda1f34b8eefb481935ef0e4cd8069e
c++: Fix ICE with parameter pack of decltype(auto) [PR103497]

This patch ensures 'type_uses_auto' also checks for usages of 'auto' in
parameter packs.

PR c++/103497

gcc/cp/ChangeLog:

* pt.cc (type_uses_auto): Check inside parameter packs.

gcc/testsuite/ChangeLog:

* g++.dg/cpp1y/decltype-auto-103497.C: New test.

Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
gcc/cp/pt.cc
gcc/testsuite/g++.dg/cpp1y/decltype-auto-103497.C [new file with mode: 0644]