sql_yacc.yy incompatible with bison 3

Description

As in summary. Build fails due to changes in the newest Bison, i.e.:

/build/mariadb/src/mariadb-5.5.32/sql/sql_yacc.yy:32:23: error: 'yythd' was not declared in this scope
#define YYTHD ((THD *)yythd)
^
/build/mariadb/src/mariadb-5.5.32/sql/sql_yacc.yy:39:14: note: in expansion of macro 'YYTHD'
#define Lex (YYTHD->lex)
^
/build/mariadb/src/mariadb-5.5.32/sql/sql_yacc.yy:15324:23: note: in expansion of macro 'Lex'
LEX *lex= Lex;
^

Environment

Arch Linux, gcc 4.8.1, bison 3.0

Status

Assignee

Sergey Vojtovich

Reporter

Bartłomiej Piotrowski

Labels

None

External issue ID

None

External issue ID

None

Fix versions

Affects versions

Priority

Major
Configure