bug-bison
[Top][All Lists]
Advanced

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

Spurious warning "unset value: $$"


From: Debashis De
Subject: Spurious warning "unset value: $$"
Date: Mon, 11 Jan 2016 12:08:36 +0530

Hello,

Here is my log:

address@hidden src]$ ./bison --version
bison (GNU Bison) 3.0.4
Written by Robert Corbett and Richard Stallman.

Copyright (C) 2015 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.
address@hidden src]$ cat ~/t.y
%start st1

%destructor { } st1

%type <int> st2
%token st3

%%

st1 : st2 { /* $$ = 0 ; */ } ;

st2 : st3 { $$ = 0 ; } ;

%%

address@hidden src]$ ./bison ~/t.y
/home/debashis/t.y:10.7-28: warning: unset value: $$ [-Wother]
 st1 : st2 { /* $$ = 0 ; */ } ;
       ^^^^^^^^^^^^^^^^^^^^^^
address@hidden src]$

Thanks and regards,
Debashis

-- 
*Things are to be used, people are to be loved. Do not do it the other way
round.*


reply via email to

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