bug-bison
[Top][All Lists]
Advanced

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

Re: problems compiling groff with gcc-3.0.3


From: Akim Demaille
Subject: Re: problems compiling groff with gcc-3.0.3
Date: 29 Jan 2002 12:21:13 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp)

>>>>> "Paul" == Paul Eggert <address@hidden> writes:

>> From: Akim Demaille <address@hidden> Date: 28 Jan 2002 11:11:45
>> +0100
>> 
>> Note that we defined YYSIZE_T and YYSTACK_ALLOC here.

Paul> I think this is the fundamental problem.  The code assumes that
Paul> if alloca is asked for, then size_t (or std::size_t) has already
Paul> been declared.  Apparently that is not true in general.

Exactly.

Paul> Unfortunately, I can't reproduce this problem with Bison 1.32
Paul> and GCC 3.0.3 on Solaris 8, either with groff-current (as of
Paul> 2002-01-28) or groff 1.17.2.  Since I can't reproduce the
Paul> problem, it would be helpful if you could test my fix enclosed
Paul> below on your installation.

Weird.  How come there can be such differences?  Does G++ rely heavily
on the constructor's headers?

Paul> How about the following patch instead?  It's simpler and safer,
Paul> and (if I understand your problem correctly) should have the
Paul> same effect.

I like it much better!  Obviously the right fix, please install (on
both Bisons).



reply via email to

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