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: [4.1 PATCH] Backport C++ PR28261 fix to fix PR c++/29535


On 1/2/07, Jakub Jelinek <jakub@redhat.com> wrote:
Hi!

In http://gcc.gnu.org/ml/gcc-patches/2006-10/msg00877.html
Mark said "I will apply to the 4.1 branch when testing completes."
The patch applies cleanly and, more importantly, fixes a P1 regression
on 4.1 branch.
Bootstrapped/regtested so far on {i386,x86_64,s390{,x}}-linux, ok for 4.1?
Is the new testcase ok for 4.2/trunk?

This caused PR30382 on the branch. Possibly another patch needs backporting.

Richard.

2007-01-02 Jakub Jelinek <jakub@redhat.com>

        PR c++/29535
        Backported from mainline
        2006-10-17  Mark Mitchell  <mark@codesourcery.com>
        PR c++/28261
        * parser.c (cp_lexer_next_token_is_decl_specifier_keyword): New
        function.
        (cp_parser_constructor_declarator_p): Use it.
        (cp_parser_check_type_definition): Return a value indicating
        whether or not the definition is valid.
        (cp_parser_enum_specifier): Skip invalid enum definitions.

        PR c++/28261
        * g++.dg/parse/enum3.C: New test.

        PR c++/29535
        * g++.dg/template/crash66.C: New test.


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