Hi,

I've found a regression in current bison (3.0.2.11-8044) while trying to
compile [1]. They define %union value {}, which should be possible
according to [2]. Using bison 2.5 this works fine.

Minimal test case:
%{
void yyerror ( const char *msg);
int yylex (void);
%}

%union YYSTYPE {
  int val;
};

%type <val> program

%%

program: { $$ = ""; };

Generated line using bison 3.0.2.11-8044:
typedef union #line 6 "input.y" /* yacc.c:355  */

Using bison 2.5:
typedef union 
/* Line 293 of yacc.c  */
#line 6 "input.y"

Cheers Jochen

[1] https://www.cs.cmu.edu/~ipc/
[2] https://www.gnu.org/software/bison/manual/bison.html#Union-Decl

Attachment: signature.asc
Description: Digital signature

Reply via email to