[Bug bootstrap/21345] New: [4.0.0] treelang/parse.y:454.11: parse error

ltg at zes dot uni-bremen dot de gcc-bugzilla@gcc.gnu.org
Mon May 2 21:36:00 GMT 2005


Hi,

I got the following during bootstrap:

bison  -v --defines --output=treelang/parse.c
/home/ltg/software/src/work/gcc-4.0.0/gcc/treelang/parse.y
/home/ltg/software/src/work/gcc-4.0.0/gcc/treelang/parse.y:454.11: parse error,
unexpected ":", expecting ";" or "|"
make[2]: [treelang/parse.h] Error 1 (ignored)

[stuff deleted]

flex  -otreelang/lex.c /home/ltg/software/src/work/gcc-4.0.0/gcc/treelang/lex.l
stage1/xgcc -Bstage1/ -B/usr/local/i686-pc-linux-gnu/bin/ -c   -O2 -g
-fomit-frame-pointer -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros
-Wold-style-definition  -fno-common -Wno-error  -DHAVE_CONFIG_H    -I.
-Itreelang -I/home/ltg/software/src/work/gcc-4.0.0/gcc
-I/home/ltg/software/src/work/gcc-4.0.0/gcc/treelang
-I/home/ltg/software/src/work/gcc-4.0.0/gcc/../include
-I/home/ltg/software/src/work/gcc-4.0.0/gcc/../libcpp/include  treelang/lex.c -o
treelang/lex.o
/home/ltg/software/src/work/gcc-4.0.0/gcc/treelang/lex.l:45:19: error: parse.h:
No such file or directory


This is my bison version:

bison (GNU Bison) 1.75
Written by Robert Corbett and Richard Stallman.

Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


The following patch should fix this:

2005-05-02  Lothar Guthmann  <ltg@zes.uni-bremen.de>


        * treelang/parse.y: added missing ";"

*** parse.y.orig        2005-03-11 04:52:56.000000000 +0100
--- parse.y     2005-05-02 23:07:00.000000000 +0200
*************** parameters_opt:
*** 450,455 ****
--- 450,456 ----
  | parameters {
   $$ = $1;
  }
+ ;

  parameters:
  parameter {

-- 
           Summary: [4.0.0] treelang/parse.y:454.11: parse error
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ltg at zes dot uni-bremen dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21345



More information about the Gcc-bugs mailing list