This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCHes for c++/79549 and 79556 (ICE with auto parameter pack)
- From: Jason Merrill <jason at redhat dot com>
- To: gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 10 May 2017 11:55:59 -0400
- Subject: Re: C++ PATCHes for c++/79549 and 79556 (ICE with auto parameter pack)
- Authentication-results: sourceware.org; auth=none
- References: <CADzB+2kJWcoq9bee_AOp1bNoELciw1ORun-pPaKyJ2Bjm=etsQ@mail.gmail.com>
On Fri, Feb 17, 2017 at 1:41 PM, Jason Merrill <jason@redhat.com> wrote:
> In 79556, we try to deduce an auto type from a dependent initializer
> with null TREE_TYPE, which doesn't work; fixed by catching that case
> in do_auto_deduction.
>
> In 79549, we try to tsubst into the type of a NONTYPE_ARGUMENT_PACK,
> which doesn't make sense for an auto parameter pack; in fact, it
> doesn't make sense for the argument pack to have a type at all. For
> GCC 7 I'm fixing this by leaving the auto type in place; for GCC 8
> we'll do away with TREE_TYPE on all NONTYPE_ARGUMENT_PACKs.
And now I'm applying the GCC8 patch.
Jason