This is the mail archive of the gcc-regression@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: GCC build of HEAD failed for native with your patch on 2004-07-12T16:30:28Z.


GCC regression checker wrote:

>> With your recent patch, GCC HEAD does not compile on:
>>  native
>> Attached is build output for those targets.
>>
>> The build failures are new.

Nathan, this is yours:
http://gcc.gnu.org/ml/gcc-patches/2004-07/msg00902.html

/Users/regress/tbox/cvs-gcc/gcc/gcc/cp/parser.c: In function
`cp_parser_class_head':
/Users/regress/tbox/cvs-gcc/gcc/gcc/cp/parser.c:12485: warning: unused variable
`token'

*************** cp_parser_class_head (cp_parser* parser,
*** 12757,12773 ****
       is valid.  */
    if (nested_name_specifier)
      pop_p = push_scope (nested_name_specifier);
!   /* Now, look for the base-clause.  */
!   token = cp_lexer_peek_token (parser->lexer);
!   if (token->type == CPP_COLON)
!     {
!       tree bases;

-       /* Get the list of base-classes.  */
-       bases = cp_parser_base_clause (parser);
-       /* Process them.  */
-       xref_basetypes (type, bases);
-     }
    /* Leave the scope given by the nested-name-specifier.  We will
       enter the class scope itself while processing the members.  */
    if (pop_p)
--- 12758,12773 ----
       is valid.  */
    if (nested_name_specifier)
      pop_p = push_scope (nested_name_specifier);
!
!   bases = NULL_TREE;
!
!   /* Get the list of base-classes, if there is one.  */
!   if (cp_lexer_next_token_is (parser->lexer, CPP_COLON))
!     bases = cp_parser_base_clause (parser);
!
!   /* Process the base classes.  */
!   xref_basetypes (type, bases);

    /* Leave the scope given by the nested-name-specifier.  We will
       enter the class scope itself while processing the members.  */
    if (pop_p)
Giovanni Bajo



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