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]

Re: C/C++ PATCH: `case' handling


On Tue, 12 Sep 2000, Mark Mitchell wrote:
> Thanks; I've got a fix.  Testing now.

Thanks! The following (which I didn't notice on gcc-patches, btw)
indeed fixes the original crash:

  2000-09-12  Mark Mitchell  <mark@codesourcery.com>

        * decl.c (finish_case_label): Given the LABEL_DECL a
        DECL_CONTEXT.

> Gerald, I bet this fix will fix your oroginal test-case as well.  The
> stripped-down test case looks like it is running into some other
> problem: the compiler is crashing while trying to give a parse error.

In fact, my original test-case seems to cause *three* different bugs in
the compiler, which is reduced to two by your patch. =:-o

Thanks!
Gerald
-- 
Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/


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