This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ Patch] PR 53305
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- 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>, Jason Merrill <jason at redhat dot com>
- Date: Thu, 10 May 2012 21:48:42 -0500
- Subject: Re: [C++ Patch] PR 53305
- References: <4FAC5209.4000707@oracle.com>
On Thu, May 10, 2012 at 6:40 PM, Paolo Carlini <paolo.carlini@oracle.com> wrote:
> Hi,
>
> an ICE on invalid (per Daniel's analysis): when r is NULL_TREE the next
> DECL_CONTEXT (r) can only crash. Plus a garbled error message because
> pp_cxx_simple_type_specifier doesn't handle BOUND_TEMPLATE_TEMPLATE_PARM.
>
> Tested x86_64-linux.
>
> Thanks,
> Paolo.
>
> ///////////////////////////
Stylistically, I would write
if (r == NULL)
or
if (r == NULL_TREE)
Patch OK with that change.
-- Gaby