[Top][All Lists]

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

Re: Bison 3.7.90 (beta)

From: Akim Demaille
Subject: Re: Bison 3.7.90 (beta)
Date: Tue, 17 Aug 2021 08:59:27 +0200

Hi Dagobert,

Thanks a lot for the feedback!

> Le 13 août 2021 à 09:50, Dagobert Michelsen <dam@opencsw.org> a écrit :
> Hi Akim,
> I see errors on Solaris 10 x86:
>  CXX      examples/c++/glr/examples_c___glr_c___types-c++-types.o
> "examples/c++/glr/c++-types.cc", line 734: Warning:  The template qualifier 
> can only be used within a template.
> "/opt/developerstudio12.6/lib/compilers/CC-gcc/include/c++/5.4.0/bits/algorithmfwd.h",
>  line 582: Error: Could not find a match for std::swap<_Tp>(_Tp, _Tp) needed 
> in glr_stack_item::operator=(glr_stack_item).
> "examples/c++/glr/c++-types.cc", line 1360:     Where: While instantiating 
> "void std::swap<char, 60>(char(&)[60], char(&)[60])".

Ok, I know that issue: glr2.cc requires C++11.  I'll address that,

> and there are also errors on Solaris 10 Sparc:
>  YACC     examples/c/lexcalc/parse.c
> /home/dam/mgar/pkg/bison/trunk/work/solaris10-sparc/build-isa-sparcv8plus/bison-3.7.90/examples/c/lexcalc/parse.y:
>  error: 1 nonterminal useless in grammar [-Werror=other]
> /home/dam/mgar/pkg/bison/trunk/work/solaris10-sparc/build-isa-sparcv8plus/bison-3.7.90/examples/c/lexcalc/parse.y:
>  error: 1 rule useless in grammar [-Werror=other]
> /home/dam/mgar/pkg/bison/trunk/work/solaris10-sparc/build-isa-sparcv8plus/bison-3.7.90/examples/c/lexcalc/parse.y:79.25-27:
>  error: start symbol NUM does not derive any sentence  
>   79 | %start input expression NUM
>      |                         ^~~  
> gmake[3]: *** [Makefile:9538: examples/c/lexcalc/parse.c] Error 1

That makes no sense to me: bison is emitting an incorrect
diagnostic.  I absolutely do not understand how this is possible.
Except if we actually are not running the shipped bison, but another

Could you please run `make check-examples V=1`?

BTW, please also run `make check-tests`.  Because you had errors in the tests 
of the examples, the main test suite was not run.

> The compiler in Oracle Studio 12.6 raised some time ago as discussed in
>  https://lists.gnu.org/archive/html/bug-bison/2019-10/msg00045.html

But did that cause `make` to fail?  Or is it just warnings?

reply via email to

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