This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ Patch] PR 71169 ("[7/8 Regression] ICE on invalid C++ code in pop_nested_class"), PR 71832 and more (Take 2)
- From: Jason Merrill <jason at redhat dot com>
- To: Paolo Carlini <paolo dot carlini at oracle dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 9 Mar 2018 10:17:23 -0500
- Subject: Re: [C++ Patch] PR 71169 ("[7/8 Regression] ICE on invalid C++ code in pop_nested_class"), PR 71832 and more (Take 2)
- Authentication-results: sourceware.org; auth=none
- References: <b7b9dc2a-c5f2-a90c-0240-4520f9473ea3@oracle.com> <7bf019ee-849c-95d0-53e2-8140a1928499@oracle.com>
You should be able to say
if (any_erroneous_template_args (type))
and I don't think you need the goto; the normal logic should handle
the truncated vecs fine.
On Fri, Mar 9, 2018 at 4:14 AM, Paolo Carlini <paolo.carlini@oracle.com> wrote:
> .. after a few hours of sleep, I realize that in principle we could also
> call any_erroneous_template_args_p directly. In that case however, I believe
> get_template_info does nothing 100% of the case, not sure we want to do
> that.
>
> Paolo.