On 7/19/24 10:55 AM, Patrick Palka wrote:
On Fri, Jul 5, 2024 at 1:50 PM Patrick Palka <ppa...@redhat.com> wrote:
Bootstrapped and regtested on x86_64-pc-linux-gnu, does this look
OK for trunk/14?
-- >8 --
During the alias CTAD transformation, if substitution failed for some
guide we should just discard the guide silently. We currently do
discard the guide, but not silently, which causes us to reject the
below testcase due to forming a too-large array type when transforming
the user-defined deduction guides.
This patch fixes this by passing complain=tf_none instead of
=tf_warning_or_error in the couple of spots where we expect subsitution
to possibly fail and so subsequently check for error_mark_node.
Ping. Alternatively we could set complain=tf_none everywhere.
That sounds better, unless you think there's a reason to have different
complain args for different calls.
Jason