bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bison produces an output which causes gcc to hang


From: todd freed
Subject: Re: bison produces an output which causes gcc to hang
Date: Wed, 10 Apr 2019 21:30:09 -0700

When I run,

bison -o output-file input-file

I see references in the output file of the form,

#line X "filename"

Have filename=output-file.

Shouldn't it be filename=input-file?

Perhaps this is what changed.

Regards,

-Todd

On Wed, Apr 10, 2019 at 9:14 PM todd freed <address@hidden> wrote:
>
> Hello,
>
> I have found a bug in the gcc preprocessor which causes gcc to hang.
> The smallest input to gcc which causes this hang is,
>
> #line 1 "/dev/stdout"
> #def xy
>
> The bug report to gcc is here,
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90034
>
> bison will produce such an output when invoked like,
>
> bison -o /dev/stdout parser.y
>
> I hesitate to even file a bug report with bison, except that it seems
> to be a regression. That is, recent version(s) of bison produce such
> an output, but I have used bison in this fashion for years without a
> problem. I believe this is a recent behavior change in bison.
>
> I tried to build bison from historical tags (v3.0 and v3.2) to check
> the previous behavior, but was not able to produce a binary that
> worked on my system.
>
> Thanks
>
> -Todd



reply via email to

[Prev in Thread] Current Thread [Next in Thread]