bug-bison
[Top][All Lists]
Advanced

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

Re: Incorrectly dereferencing %union fields in y.tab.c


From: John Horigan
Subject: Re: Incorrectly dereferencing %union fields in y.tab.c
Date: Sun, 15 Jun 2014 16:53:52 -0700

Shouldn't all the %type<int> lines be %type<ival>?

-- john


On Sun, Jun 15, 2014 at 10:58 AM, Milton KBenjamin <
address@hidden> wrote:

> address@hidden
>
> Hi All,
>
> y.tab.c file dereferences with .int rather than with .ival
>
> Best
> Milt
>
> y.tab.c file
>
> ...
>   YY_REDUCE_PRINT (yyn);
>   switch (yyn)
>     {
>         case 4:
>
> /* Line 1464 of yacc.c  */
> #line 95 "cfg.y"
>     {(yyval.int)=(yyvsp[(1) - (1)].int); dbg print("SensorId:
> INTEGER=%d\n",(yyvsp[(1) - (1)].int));;}
>     break;
>
>   case 5:
>
> /* Line 1464 of yacc.c  */
> #line 98 "cfg.y"
>     {(yyval.sval)=(yyvsp[(1) - (1)].sval); dbg print("SecurityCode:
> LETTERS=%s\n",(yyvsp[(1) - (1)].sval));;}
>     break;
>
>   case 6:
>
> /* Line 1464 of yacc.c  */
> #line 101 "cfg.y"
>     {(yyval.int)=(yyvsp[(1) - (1)].int);;}
>     break;
>
>   case 7:
>
> /* Line 1464 of yacc.c  */
> #line 102 "cfg.y"
>     {(yyval.int)=(yyvsp[(1) - (1)].int);;}
>     break;
>
>   case 8:


reply via email to

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