This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++ Patch] PR 53305


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]