This is the mail archive of the gcc@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: [RFC] ICE when error_mark_node is gimplified


On Thu, Dec 17, 2015 at 5:55 AM, Andrew Pinski <pinskia@gmail.com> wrote:
> Hi,
>   PR 68948 shows a case which has been broken for a long time and very
> hard to see.  So I am recommending that we introduce an assert inside
> the gimplifier if we process an error_mark_node and there was no
> errors or sorrys from the front-end; I will send a patch if there is a
> general feeling that it is a good idea.
>
> Good idea or bad idea?  This will prevent cases like PR 68948 from
> happening and make it easier to understand why the wrong code is
> happening.

Where do we let error_mark_node through?  We should hit

           default:
              gcc_unreachable ();

in gimplify_expr.

> Thanks,
> Andrew


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